I notice the function calls `echo env |...`, when I do echo env from the command line I get nothing, env by iteself works. An example of a line from the .profile is: TESTUSERS="test@unix.company.com"; export TESTUSERS. This is one of the variables that tillys method does not pick up. Thanks again for your help