The command or script jobs fail on CA WA Agent.
Job failed. Exit code 2, Status: "The system cannot find the file specified."
The CA WA Agent was not able to find the command or script in the PATH.
Release : 11.3.6
Component : CA Workload Automation AE / CA Workload Automation DE / CA Workload Automation Agent
Check the PATH and make sure it includes the directory / folder to the command / script to be executed.
In Windows, login as the user defined in the job and in command prompt (CMD) enter:
Linux/UNIX, login as the user of the job and enter this command to check the path:
If PATH cannot be updated, then put the entire path of command/script in the job.
Linux/UNIX : /mydir/myscipt.sh
Tip: It is always a good idea to enter the full path of the command in the job. Use Manager / Scheduler level variables if the path can change or is relative. The manager will resolve the variables to the path and then send the job to the WA Agent.