Your mileage may vary, but this is my working test on Red Hat / CentOS:
wait /bin/sh -c "echo {id of action} > '/tmp/file output {id of action}'"
Your mileage may vary, but this is my working test on Red Hat / CentOS:
wait /bin/sh -c "echo {id of action} > '/tmp/file output {id of action}'"