skids234
02-28-2007, 04:19 PM
I think I must be doing something incredibly stupid, and I'm looking for a little bit of guidance.
I've placed a file caled hello.pl into my cgi-bin. If I ssh in and do 'perl hello.pl' it outputs with no problems. However, if I try to execute it either directly via a url, or through an SSI, I get no ouput at all. No errors, no warnings. Just nothing. I thought it might be permissions related, but it's definitely set to 755. Please help!
The contents of hello.pl:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<html><head>";
print "<title>CGI Test</title>";
print "</head>";
print "<body><h2>Hello I am Perl</h2>";
print "</body></html>";
I've placed a file caled hello.pl into my cgi-bin. If I ssh in and do 'perl hello.pl' it outputs with no problems. However, if I try to execute it either directly via a url, or through an SSI, I get no ouput at all. No errors, no warnings. Just nothing. I thought it might be permissions related, but it's definitely set to 755. Please help!
The contents of hello.pl:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<html><head>";
print "<title>CGI Test</title>";
print "</head>";
print "<body><h2>Hello I am Perl</h2>";
print "</body></html>";