in reply to (8)Exec format error: when running the script on Linux
I came across this thread when Googling on "(8)Exec format error:". This probably not the answer to the question asked... However, I've just had this problem and it turned out that I'd started my script with a newline and not #!/usr/bin/perl (ie I'd opened emacs hit return, then paged down to the bit of code I was working on).
so the script worked as 'perl foo.pl' but not via apache
Hope this helps someone.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: (8)Exec format error: when running the script on Linux
by Anonymous Monk on Apr 22, 2009 at 19:31 UTC | |
|
Re^2: (8)Exec format error: when running the script on Linux
by Anonymous Monk on Jun 30, 2009 at 11:35 UTC | |
|
Re^2: (8)Exec format error: when running the script on Linux
by Anonymous Monk on Jun 30, 2009 at 11:50 UTC | |
|
Re^2: (8)Exec format error: when running the script on Linux
by Hermano23 (Beadle) on Jul 29, 2014 at 15:50 UTC | |
|
Re^2: (8)Exec format error: when running an unicode script
by Anonymous Monk on Oct 15, 2011 at 21:04 UTC | |
by Anonymous Monk on Oct 15, 2013 at 15:06 UTC |