carric has asked for the wisdom of the Perl Monks concerning the following question:
I am stumped.. I have a script for which I have verified perl is indeed where it should be, but if you execute it like this:
./script.plit gives the message
: bad interpreter: No such file or directoryIF you go into the script and change
#!/usr/bin/perlIt executes.. but there are SO many errors, it doesn't work (it's a CGI script from somebody, that has "issues").
Has anyone ever seen this?? It has some "require" statements for some other perl chunks, and I was wondering if that had anything to do with it, but I edited a few scripts, and it doesn't seem to affect anything.
The script lives on a local file system, and has proper permissions.
Thanks a lot ahead of time.
Update:
I did not see any control chars, but ran dos2unix anyway on it, and then it started working. Really strange.
Thanks everyone!!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: bad interpreter: No such file or directory
by BazB (Priest) on Jan 20, 2004 at 08:08 UTC | |
by Anonymous Monk on Apr 16, 2014 at 18:19 UTC | |
|
Re: bad interpreter: No such file or directory
by dws (Chancellor) on Jan 20, 2004 at 08:56 UTC | |
by Anonymous Monk on Jan 20, 2004 at 09:17 UTC | |
by BUU (Prior) on Jan 20, 2004 at 10:16 UTC | |
|
Re: bad interpreter: No such file or directory
by cchampion (Curate) on Jan 20, 2004 at 08:38 UTC | |
|
Re: bad interpreter: No such file or directory
by Ophidions (Initiate) on Nov 10, 2011 at 10:13 UTC | |
by Anonymous Monk on Feb 22, 2012 at 07:31 UTC | |
|
Re: bad interpreter: No such file or directory
by Anonymous Monk on Jul 26, 2016 at 16:26 UTC | |
by Anonymous Monk on Oct 03, 2016 at 22:26 UTC |