I'm having the hardest time to get the simplest Perl script working.
I have a file called test.pl in my cgi-bin. It is CHMOD to 755
-rwxr-xr-x 1 errolian errolian 88 Aug 6 11:49 test.pl
The file is:
#!/usr/bin/perl
#
# Program to do the obvious
#
print 'Hello world.'; # Print a message
From a shell account (Putty) with Perl works fine:
jailshell-2.05a$ perl test.pl
Hello world.jailshell-2.05a$ perl test.pl
From a shell account (Putty) with no Perl prefix does not work:
jailshell-2.05a$ test.pl
jailshell: test.pl: command not found
In a web browser:
500 Internal Server Error
What am I doing wrong?


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks