Linux - running scripts as another user

If you’re executing scripts on Linux keep an eye out for the environment.
Your environment, when running via the agent, is likely to be different to that you get when you log in interactivley.
Have a look at this tip BES Client’s environment on *NIX