How to setup environment variables per user in /etc/auto.profile?
search cancel

How to setup environment variables per user in /etc/auto.profile?

book

Article ID: 52576

calendar_today

Updated On:

Products

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

Issue/Introduction

Description:

We have jobs which run under different user accounts. When setting ulimits in /etc/auto.profile it will be in effect for all the jobs running via AUTOSYS regardless of the user account. We would like to run these jobs with the user's specified ulimit rather than a single ulimit entry defined in the /etc/auto.profile for all users and jobs.

Solution:

You may add the following lines in /etc/auto.profile:

ID='whoami'
export ID
 
case $ID in
user1)
ulimit -n 2000
;;
user2)
ulimit -n 4000
;;
esac

Environment

Release: ATSY1C99000-4.5-AutoSys-Job Management-Class 1 Remote Agent
Component: