cancel
Showing results for 
Search instead for 
Did you mean: 

pl script won't run

N/A

pl script won't run

I have written a very small test script called test2.pl, put it in my cgi-bin directory, chmoded it 755 and can run it Ok from a telnet prompt, however when I point my browser to cgi.mcdade.force9.co.uk/cgi-bin/test2.pl, it downloads it, instead of running it.
Anyone know why it doesn't work?

test2.pl:

#!/bin/bash
echo
echo "hello world!<br>"
echo
1 REPLY
N/A

pl script won't run

forget it, i got it working. For got about the "content-type" string needed at the beginning. ie
"Content-type: text/html"

Shockedops: