Front page | perl.beginners |
Postings from February 2002
Re: wondering what might be causing this error
Thread Previous
|
Thread Next
From:
Ian Christie
Date:
February 11, 2002 17:34
Subject:
Re: wondering what might be causing this error
Message ID:
5.1.0.14.0.20020211202912.021482c0@bmts.com
Problem solved, I don't think it was ever opened on a windows machine. I
recompiled perl, no luck, discovered my old install of perl was in the
location mentioned so I changet the line to #!/usr/local/bin/perl (the new
location and deleted the old), still no luck, so thought that maybe the end
of line was corupted, so I completely deleted the line, typed it back in
and boom it worked. The control characters don't show in the editor I'm
using, Midnight Commander.
Thanks for the help, time to tell the author what I did.
At 05:16 PM 11/02/02 -0800, you wrote:
>Was the file ever opened on a windows machine? Perhaps looking for ^M's
>or similiar annoyances. The types of control characters should show up
>when your using an editor (such as vi) on the file, but they are often not
>visible of you are viewing the file in a pager (ie: more).
>
>Just a thought ...
>
>
>-R
>
>
>At 08:07 PM 2/11/2002 -0500, you wrote:
>>First, this is a shopping cart script, I've been in contact with the
>>author, but since the machine the script is on is behind an annoying
>>firewall (read doesn't seem to open ports when asked by the admin) I
>>can't give him access to the server.
>>
>>the first 3 lines of the script are
>>
>>#!/usr/bin/perl
>>#####################
>>#
>>
>>Perl is located at /usr/bin/ it is version 5.6.1.
>>
>>
>>Roger, thanks for the suggestion about the permissions, it didn't help,
>>but was worth a try. I think it's supposed to be at least 711 so everyone
>>can execute it.
>>
>>
>>
>>At 03:58 PM 11/02/02 -0800, you wrote:
>>
>>>Let's see the first 3-4 lines of the script..
>>>
>>>Agustin Rivera
>>>Webmaster, Pollstar.com
>>>http://www.pollstar.com
>>>
>>>
>>>
>>>----- Original Message -----
>>>From: "Ian Christie" <ichristie@bmts.com>
>>>To: <beginners@perl.org>
>>>Sent: Monday, February 11, 2002 3:55 PM
>>>Subject: wondering what might be causing this error
>>>
>>>
>>> > 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
>>> >
>>> >
>>> > Ian Christie
>>> >
>>> --------------------------------------------------------------------------
>>>------------
>>> >
>>> > When the least they could do to you was everything,
>>> > then the most they could do to you suddenly held no terror.
>>> > -- (Terry Pratchett, Small Gods)
>>> >
>>>
>>>
>>>----------------------------------------------------------------------------
>>>----
>>>
>>>
>>> >
>>> > ---
>>> > Outgoing mail is certified Virus Free.
>>> > Checked by AVG anti-virus system (http://www.grisoft.com).
>>> > Version: 6.0.323 / Virus Database: 180 - Release Date: 08/02/02
>>> >
>>> >
>>>
>>>
>>>----------------------------------------------------------------------------
>>>----
>>>
>>>
>>> > --
>>> > To unsubscribe, e-mail: beginners-unsubscribe@perl.org
>>> > For additional commands, e-mail: beginners-help@perl.org
>>>
>>>
>>>--
>>>To unsubscribe, e-mail: beginners-unsubscribe@perl.org
>>>For additional commands, e-mail: beginners-help@perl.org
>>>
>>>
>>>
>>>
>>>---
>>>Incoming mail is certified Virus Free.
>>>Checked by AVG anti-virus system (http://www.grisoft.com).
>>>Version: 6.0.323 / Virus Database: 180 - Release Date: 08/02/02
>>
>>
>>
>>---
>>Outgoing mail is certified Virus Free.
>>Checked by AVG anti-virus system (http://www.grisoft.com).
>>Version: 6.0.323 / Virus Database: 180 - Release Date: 08/02/02
>>
>>--
>>To unsubscribe, e-mail: beginners-unsubscribe@perl.org
>>For additional commands, e-mail: beginners-help@perl.org
>
>
>
>
>
>
>---
>Incoming mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.323 / Virus Database: 180 - Release Date: 08/02/02
Thread Previous
|
Thread Next