search cancel

UNIX/Linux agent using Agent env instead of login object env

book

Article ID: 230145

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

Creating a new Unix or Linux job and running it, the environment for the user who starts the agent is being run instead of the environment of the user in the login object for the job.

This is causing jobs to fail since they are pulling in the incorrect variables for things like path

Environment

Release : 12.3

Component : AUTOMATION ENGINE

Cause

No Shell is being used in the job or one without the dash is being used

Resolution

Check to see if a Shell is defined in the UNIX tab of the job.  If not, it will look like this:

To have the login object user's environment be used, a -[shell type] option must be used.  For example for bash:

  • Open the object
  • Go to the UNIX tab
  • Under Shell, choose "Bourne-Shell on Linux with .profile       -bash"

This will use the profile of the user who is being used in the login object for the job.