Echo usage in action script

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”

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”"

Don’t the percents need to be percent encoded as well?

thanks a lot Matt, it worked greatly…