Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Sep 2005 18:41:35 -0400
From:      bob self <bobself@charter.net>
To:        "N.J. Thomas" <njt@ayvali.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Can't execute a script
Message-ID:  <43220F9F.9050002@charter.net>
In-Reply-To: <20050909212305.GC15735@ayvali.org>
References:  <4321DC05.3050509@charter.net> <20050909212305.GC15735@ayvali.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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...."..




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43220F9F.9050002>