in reply to script-problem
It's not that your she bang line is wrong as a previous poster suggested. If that was the case, you would get the message:$ ls -l /usr/bin/perl -rwxr-xr-x 2 root root 2478418 Jan 16 2004 /usr/bin/perl $ rm -f print.pl $ echo '#!/usr/bin/perl' > print.pl $ echo 'print "Hello, world\n"' >> print.pl $ ls -l print.pl -rw------- 1 anonymous monk 39 Oct 20 11:33 print.pl $ ./print.pl bash: ./print.pl: /usr/bin/perl: bad interpreter: Permission denied $ chmod +x print.pl $ ls -l print.pl -rwx------ 1 anonymous monk 39 Oct 20 11:33 print.pl $ ./print.pl Hello, world
which you would also get if there were "unreadable" characters after 'perl' as the other posted suggested.$ bash: ./print.pl: /usr/bin/perl: bad interpreter: No such file o +r directory
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: script-problem
by Anonymous Monk on Oct 20, 2004 at 10:28 UTC | |
by Joost (Canon) on Oct 20, 2004 at 11:24 UTC | |
by Anonymous Monk on Oct 21, 2004 at 09:12 UTC | |
by Anonymous Monk on Nov 08, 2004 at 15:58 UTC |