Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][tlug] perl scripts not executing
- Date: Thu, 9 May 2002 15:22:33 +0900
- From: "Brett Robson" <brett@example.com>
- Subject: [tlug] perl scripts not executing
Hi all, I'm trying to get some perl scripts running under apache using mod_cgi. Shell scripts work fine but the perl stuff won't run, I get the following errror [Thu May 9 14:18:32 2002] [error] (2)No such file or directory: exec of /var/www/cgi-bin/test.cgi failed I've tried running them at the shell prompt with the results below. The hash bang line looks correct and the permissions are correct. Shouldn't perl scripts run straight from the shell prompt as at the bottom of the following session? Thanks Brett bash-2.04$ pwd /var/www/cgi-bin bash-2.04$ ls -l total 7 -rwxr-xr-x 1 adm adm 4289 May 8 11:57 clock.cgi -rwxr-xr-x 1 root root 61 May 9 14:42 test1.cgi -rwxr-xr-x 1 adm adm 160 May 9 13:30 test.cgi bash-2.04$ echo $PATH /usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/sbin:/usr/sbin:. bash-2.04$ bash-2.04$ cat test1.cgi #!/bin/sh echo "Content-type: text/plain" echo "test script" bash-2.04$ test1.cgi Content-type: text/plain test script bash-2.04$ bash-2.04$ bash-2.04$ type perl perl is hashed (/usr/bin/perl) bash-2.04$ cat test.cgi #!/usr/bin/perl print "Content-type: text/html\n\n"; print "<html><head><body>"; print "test perl/cgi page<br>this is wombat\n"; print "</body></html>"; bash-2.04$ test.cgi bash: ./test.cgi: No such file or directory bash-2.04$ ./test.cgi bash: ./test.cgi: No such file or directory bash-2.04$ perl test.cgi Content-type: text/html <html><head><body>test perl/cgi page<br>this is wombat </body><.html>bash-2.04$
- Follow-Ups:
- Re: [tlug] perl scripts not executing
- From: A.Sajjad Zaidi
- Re: [tlug] perl scripts not executing
- From: A.Sajjad Zaidi
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Is there any way to see when a ext3 partition was created/formated?
- Next by Date: Re: [tlug] ncurses error when compiling new kernel
- Previous by thread: [tlug] Looking for a web host.
- Next by thread: Re: [tlug] perl scripts not executing
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links