Thanks for the link, I am using this code, tillys updated function actually. The shell we are using is ksh. Within the .profile I see many variables which are exported, but sadly do not get printed (using Data::Dumper) when I am testing my script with the tillys function. Any suggestions would be great. TIA