Hi there. Sorry if this is in the wrong forum but I guess a moderator can shift it if needed.
I've set up a shell script to be run as a user that fires at startup on Solaris and RedHat by adding
su - <user> -c <Path_to_Script>/<script>.sh
And it works great. Problem is I can't get this to run on Irix.
From the investigations I've done it seems that the -c option is being run without the <user>'s environment variables being loaded, even though I'm specifying su - <user>
If I manually type it and split it into
su - <user>
./<Path_to_Script>/<script>.sh
The script works.
So, anyone have any idea why this happens and what a workaround might be?
Thanks,
- Rich.