At 09:42 AM 12/9/99 -0500, Melon, Jack wrote [in part]:

>       [OK. When I try to execute the file by typing the path and 
>       file name (as root) from the command line, I get:
>        bash: /home/httpd/cgi/bin/script.pl: No such file or directory


Putting aside the typo above for a moment (now that we know it's only a typo
in your e-mail), would you check the first line of the script? 

Two things to check for:

1. Does the line read as follows:

#!/usr/bin/perl

with a newline *immediately* after the "l" in perl? If not, it needs to (or
a variant of that to match the location of perl on your system).

2. Does /usr/bin/perl exist? If not, does "which perl" return a location for
perl?

I don't know that this is your problem, but I just checked here, and an
incorrect invocation of the script interpreter on the shebang (#!) line does
return a message of the form you are seeing.

BTW, I know it is annoying to have your typos pointed out, but it is also
difficult for me and others to help people when we have to guess whether a
typo we see is a mistake in the e-mail only or reflects the real problem
that needs to be corrected. So if you want help, you should try not to sound
testy when replying to such messages. 

It also helps if you don't change your e-mail address from message to
message -- I had the devil's own time finding this message again, since it
was from ""Melon, Jack" <[EMAIL PROTECTED]>" while the last one was from
"[EMAIL PROTECTED]". 
------------------------------------"Never tell me the odds!"---
Ray Olszewski                                        -- Han Solo
Palo Alto, CA                                    [EMAIL PROTECTED]        
----------------------------------------------------------------

Reply via email to