Two RUNNING events.

Document ID : KB000077067
Last Modified Date : 11/06/2018
Show Technical Document Details
When a job execute and the command contains a '&' ampersand at the end of the command syntax. The Agent sends two RUNNING Events.

For example:

insert_job: test1  job_type: CMD 
command:  /opt/mydir/ & 
machine: agent1
owner: autosys@agent1
When a job is submitted with an “&” at the end. Some operating systems will signal the child process has ended before the STATE EXEC message can be read by the agent.
Recommendation: Update the command in the job definition to remove the ampersand (&) at the end of the command.