I would definetly check wether the perl path is correct. 

Luis

On Tue, 24 Oct 2000, Jim Holthaus wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Tue, 24 Oct 2000, junkmail wrote:
> > 
> >     Hey, so I'm having a weird problem maybe someone can help me with.
> > I have a simple perl script named test.cgi that generates html (ie a cgi
> > script) which looks like
> > 
> > #!/usr/bin/perl
> > # hello.pl -- my first perl script!
> > print "Content-type: text/html\n\n";
> > print <<"EOF";
> > <HTML>
> > <HEAD>
> > <TITLE>Hello, world!</TITLE>
> > </HEAD>
> > <BODY>
> > <H1>Hello, world!</H1>
> > </BODY>
> > </HTML>
> > EOF
> > 
> > If I type "perl test.cgi" (minus the quotes) the perl script runs.  If I
> > type "./test.cgi" I got the error "bash: ./test.cgi: No such file or
> > directory"
> > If I remove the #!/usr/bin/perl line from the beginning of the perl script
> > and "./test.cgi" again it runs but gives a lot of file not found errors.
> 
> Have you tried invoking the script with an explicit path like
> /home/person/test.cgi? What happens?
> 
> Type "which perl". It should return /usr/bin/perl. If it doesn't, you need to
> point your perl script to the correct path for perl. 
> - -- 
> Jim Holthaus   (pronunciation: HOLT house)
> [EMAIL PROTECTED]
> PGP Public Key at http://www.holthaus.com/jim/pgpkey.html
> Learn about PGP at http://www.holthaus.com/jim/pgp.html
> 
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 6.5.1
> 
> iQA/AwUBOfX1BX3IcJJ+eC/CEQKbBgCg3AMmNvtWpvNka2Q/bUOgpfZ849AAn0W4
> AU01mGeprSThLOpUFYUQtuD0
> =B3eS
> -----END PGP SIGNATURE-----
> 
> 


Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.

Reply via email to