LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[CLUG] perl prob

[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
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell