Ipctea
1
Hi,
I’m trying to use below to just echo result to a output file, unfortunately I don’t see any file creation. Any suggestions, please
wait /bin/sh -c “echo "hostname
: date +%D
: date +%T
: ROMA 14579” >> “{parameter “logs”}/maint.log”"
here parameter “logs” = “/tmp/logs”
Ipctea
2
seems tilde is never picked up, attaching screenshot
You need to escape the double quotes inside your wait sh -c “” command. Try this (add back in your tilde’s)
wait /bin/sh -c “echo "hostname
: date +%D
: date +%T
: ROMA 14579” >> “{parameter “logs”}/maint.log”"
AlanM
4
Don’t the percents need to be percent encoded as well?
Ipctea
5
thanks a lot Matt, it worked greatly…