develooper Front page | perl.beginners | Postings from February 2002

Re: wondering what might be causing this error

Thread Previous | Thread Next
From:
Roger Morris
Date:
February 11, 2002 16:26
Subject:
Re: wondering what might be causing this error
Message ID:
4.2.0.58.20020209162506.01d4f010@eug4ja.lane.edu
At 06:55 PM 2/11/2002 -0500, Ian Christie wrote:
>Hi,
>
>I'm trying to get a script to work. I'm using linux and when I do 
>something like the following
>
>../myscript.cgi
>
>I get
>
>bash: ./myscript.cgi: bad interpreter: no such file or directory
>
>I know the #! is correct. Could this be a bash problem? The script runs 
>fine if I do
>
>perl ./myscript.cgi

Be sure that myscript.cgi  has the correct permissions.

chmod 700 myscript.cgi

should do the trick.


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About