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.

In reply to Re: Script works differently on two different servers by H4nch0
in thread Script works differently on two different servers by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":