[PLUG] perl error?

Randal L. Schwartz merlyn at stonehenge.com
Fri Apr 18 11:11:01 UTC 2003


>>>>> "Mike" == Mike De La Mater <mikedela at ipns.com> writes:

Mike> On Fri, 2003-04-18 at 09:42, Randal L. Schwartz wrote:
>> Hmm.  The exec failed.  Are you sure you have the right #! line
>> on the CGI script?  Does the script work from the command line?
Mike> from the command line:
Mike> cgi-bin]#  form_processor.pl
Mike> bash: form_processor.pl command not found

Mike> If I run it ./form_processor.pl, I get bad interpreter: no such file or
Mike> directory.

that still points as a bad #! line.

Mike> I know it's there, Ican see it with ls -al, it's 775 apache.apache.

Mike> It came packaged with cgi-lib.pl, same user, 755.

Mike> The first line of the script says:
Mike> #!/usr/bin/perl

Mike> I have an executable there, too.

Are you sure?

Does it run with "perl formprocessor.pl"?  Or generate the same
"bad interpreter" error?

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!



More information about the PLUG mailing list