[CLUG] perl prob
Donncha O Caoimh
donncha.ocaoimh at tradesignals.com
Mon Mar 4 16:20:30 GMT 2002
I tried Google:
http://www.google.com/search?q=bash+bad+interpreter:+No+such+file+or+directory&hl=en&start=10&sa=N
and found this:
http://archives.postgresql.org/pgsql-cygwin/2001-06/msg00104.php
what does ls -l /bin/sh* say?
Donncha.
Peter Flynn wrote:
>
> 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
>
> _______________________________________________
> Cork maillist - Cork at linux.ie
> http://www.linux.ie/mailman/listinfo/cork
More information about the Cork
mailing list