Jeremy
07-15-2004, 08:35 PM
Hey folks,
I cannot get even the simples shell script to execute:
#!/bin/sh
echo content-type: text/plain
echo
date
(I'm debugging - I'm obviously not trying to get a web page to report the date out)
Anyway - this simple script is in my cgi-bin directory, has 777 permissions, and the directory has the default 755 permissions, and the file was uploaded in ASCII mode. My user stats says I have PHP and CGI-BIN access - and while PHP works fine, I can't get perl or even the above shell script to work.
When executing this script I get a 500 Internal Server Error. My logs report premature end of script headers.
Ok so any ideas? I have some clue - really I do - but I spent about 2 hours trying to figure out what the heck I was doing wrong here.
I cannot get even the simples shell script to execute:
#!/bin/sh
echo content-type: text/plain
echo
date
(I'm debugging - I'm obviously not trying to get a web page to report the date out)
Anyway - this simple script is in my cgi-bin directory, has 777 permissions, and the directory has the default 755 permissions, and the file was uploaded in ASCII mode. My user stats says I have PHP and CGI-BIN access - and while PHP works fine, I can't get perl or even the above shell script to work.
When executing this script I get a 500 Internal Server Error. My logs report premature end of script headers.
Ok so any ideas? I have some clue - really I do - but I spent about 2 hours trying to figure out what the heck I was doing wrong here.