httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marty Landman <>
Subject Re: [users@httpd] cgi error
Date Thu, 04 Mar 2004 19:38:56 GMT
At 01:28 PM 3/4/2004, kaustubh shinde wrote:

>when i run it from shell with command perl test.cgi, it gives me following 

But when you run as

perl test.cgi

then the first line isn't being followed because you're telling the shell 
to use perl explicitly.

Try running from the shell with the cmd


which makes it rely on the first line for what interpreter to use. I agree 
with the other posters too, it's probably the lack of a slash in front of 
the path on the shebang. To be sure, type

which perl

on the shell. Paste that path after a #! and make this your first line.

On the side Kaustubh, it's amazing how many little details go into 
something like this. Reminds me of why I avoid working on my car. :)

Marty Landman   Face 2 Interface Inc.   845-679-9387
FormATable  DB:
Make a Website:
Free Formmailer:  

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message