Something screwy is going on here:
[cgi-bin]$ ls -l
total 8
-rwxr-xr-x 1 apache peter 5051 Mar 4 15:49 iBtest.cgi
[cgi-bin]$ head -4 iBtest.cgi
#! /usr/bin/perl
# Change the above line to reflect your server's path to perl
##########################################################################
# This script checks your paths, prints them and also any environment
[cgi-bin]$ which perl
/usr/bin/perl
[cgi-bin]$ ls -l /usr/bin/perl
-rwxr-xr-x 2 root root 708188 Aug 10 2001 /usr/bin/perl
[cgi-bin]$ ./iBtest.cgi
bash: ./iBtest.cgi: bad interpreter: No such file or directory
[cgi-bin]$ perl iBtest.cgi
Content-type: text/html
<html>
<head>
...etc...
This is a default virgin RH 7.2 plus all updates.
Your task, Foo, should you decide to accept it, is to find out
why the f**k Perl won't execute when invoked via the shell...
it won't work as http://localhost/cgi-bin/iBtest.cgi either...
///Peter
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!