Jobs Running Simple O/S Command Fail Immediately With Exit 1
Article ID: 115172
CA Workload Automation AE - Business Agents (AutoSys)CA Workload Automation AE - Scheduler (AutoSys)Workload Automation Agent
Jobs that run only a simple O/S command, such as 'ls', fail immediately with an exit code 1. The std_out/std_err files are created but are empty.
Release: Component: ATSYS
Some user's login profiles contain elements that do not work properly when the agent attempts to run a job as that user. For example, the login profile will call an interactive menu upon login. In these situations, the agent will fail the job with an exit code 1, but it is actually failing while sourcing the user's login profile.
The recommended resolution is to configure the agent to where it does not source the job owner's login profile. If there are variables in the profile that are required for the job to run properly, create a separate profile that can be referenced in the job's "profile" attribute.
To configure the agent where it will not source the user's login profile, make sure the following parameters are set in the agenparm.txt file...