UNIX Command Job Fails Immediately With Exit Code 1

Document ID : KB000007688
Last Modified Date : 14/02/2018
Show Technical Document Details

A UNIX command job fails immediately with an exit code of 1. There are no standard out/err files created when the job executes. The job command can be successfully executed by the job owner outside of WAAE.


When a command job fails immediately and the standard out/err files are not created, this usually indicates that there was an error generated when either the job's profile was sourced (if defined) or when the /etc/auto.profile was sourced. Both of these are sourced by the command prefix wrapper prior to executing the actual job command. If there are any errors when sourcing these profiles, it will cause the job to immediately fail with an exit code of 1.

This can be checked by running the following command after the job fails...

autosyslog -J job_name -t S

This will display the spool file for the job which contains any standard out/err from profile sourcing. If errors were encountered, they will be visible in this spool file.


Correct any errors with the job profile or /etc/auto.profile that appear in the spool file.