The job below attempted to source /home/compops/.profile.esp did not work on Linux agent.
It did work if I sourced the file from a command prompt and then ran the script. The script uses Korn shell
LINUX_JOB PERLJOB DOCMEM(N800UNIX)
ARGS %USER1 %USER2 %USER3
Investigation found the issue was caused by the difference between two Korn shell versions ksh-93 and ksh-88, namely with ksh-93 the ENV defined file could be read only for interactive shells.
In this case, it meant one could not use the ENV in the jobs if the Linux was set up with ksh93.
Solution options were:
- Put the environment variables sourcing into the script instead of set up ENVAR ENV clause in the job definition, or
- Use the ksh88