Can't execute a script
bob self
bobself at charter.net
Fri Sep 9 15:41:45 PDT 2005
N.J. Thomas wrote:
>I've seen something like this happen when there is a non-printing
>character on the shebang line (like a CTRL-G or similar). So instead of
>running /bin/sh, your shell tries to run "/bin/sh^G" -- which obviously
>doesn't exist.
>
>Can you run "xxd /root/bin/scripttest" and show us the output? If you
>don't have xxd on your system (it usually is packaged with Vim) you can
>try "od -x /root/bin/scripttest".
>
>xxd/od will show right away if there is anything funky on the shebang
>line that shouldn't be there.
>
>thanks,
>Thomas
>
>
>
xxd scripttest:
0000000: 2321 2f62 696e 2f73 680d 0a65 6368 6f20 #!/bin/sh..echo
0000010: 2270 696e 6769 6e67 2e2e 2e2e 220d 0a "pinging...."..
More information about the freebsd-questions
mailing list