Who sets $HOME
Posted: Wed May 14, 2008 4:48 pm
Hi
I need to know who/what sets the $HOME parameter in unix shells spawned by a datastage job.
I have a datastage job that invokes a unix shell script as an after job process. In our setup, "dsadm" is the datastage admin ID and we use a datastage user id of "pbatch".
The datastage job runs under "pbatch" user. But inside the shell script if i echo $HOME, it displays the $HOME of dsadm user.
In my second server, i have one datastage environment with three projects DEV, UT and IT and three users - devusr, utusr and itusr respectively. They all have the same datastage jobs invoking the same unix script. On this server i get the right $HOME in each project. For example if i am running a job in UT project as "utusr" i get the $HOME of utusr. If runnig a job in IT project as itusr, i get the $HOME of itusr.
Just trying to figure out where the difference in the two servers might be. What is affecting the value of $HOME.
I have already checked that $HOME is not being set in the project environment (DSParams) nor in "dsenv".
thanks
I need to know who/what sets the $HOME parameter in unix shells spawned by a datastage job.
I have a datastage job that invokes a unix shell script as an after job process. In our setup, "dsadm" is the datastage admin ID and we use a datastage user id of "pbatch".
The datastage job runs under "pbatch" user. But inside the shell script if i echo $HOME, it displays the $HOME of dsadm user.
In my second server, i have one datastage environment with three projects DEV, UT and IT and three users - devusr, utusr and itusr respectively. They all have the same datastage jobs invoking the same unix script. On this server i get the right $HOME in each project. For example if i am running a job in UT project as "utusr" i get the $HOME of utusr. If runnig a job in IT project as itusr, i get the $HOME of itusr.
Just trying to figure out where the difference in the two servers might be. What is affecting the value of $HOME.
I have already checked that $HOME is not being set in the project environment (DSParams) nor in "dsenv".
thanks