UNIX Command Job Fails Immediately With Exit Code 1

book

Article ID: 7688

calendar_today

Updated On:

Products

CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - Scheduler (AutoSys) CA Workload Automation Agent

Issue/Introduction

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.

Cause

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.

Environment

Release: ATSYHA99000-11.3.6-Workload Automation AE-High Availability Option
Component:

Resolution

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