in reply to Script works differently on two different servers
I would definitely check the permissions on your scripts. If these are correct, check to make sure you scripts have UNIX line endings.
I've had the same issue & I realized that my script had some mixed line endings. Once I modified it to have UNIX only line endings, the script ran on both the command line & in the browser.