[ALUG] Re: executable script gives error "file not found"
cl at isbd.net
cl at isbd.net
Tue Nov 28 11:48:15 GMT 2006
On Tue, Nov 28, 2006 at 11:44:26AM +0000, Jenny Hopkins wrote:
> Hullo there,
>
> I've been setting up a debian box to be a clone of several other like
> boxen. The new box has amd64 architecture and the old i386.
> Apart from that they are all still on debian sarge, 2.6 kernels.
>
> One thing all the boxen have in common is that they share files over
> an nfs mount from a server. Some of the files are binary executables.
>
> Now, on the new box, they simply won't run: I get the error
>
> balloon at capirossi:~$ /home/balloon/bin/balloon-audio-off
> bash: /home/balloon/bin/balloon-audio-off: No such file or directory
>
> The same error appears when running it as root.
>
> The file is executable.
> The selfsame file also runs no problem from the other computers using it.
> All I know about the file is that it invokes the bash shell and that
> it is sending data to the parallel port.
>
> I put together a test bash script to idiot check bash and that ran ok.
>
It sounds as if the #! at the beginning of the script is pointing at
the wrong location for bash (or at least a wrong location for
something).
Look at the first line of /home/balloon/bin/balloon-audio-off and see
if what it points at exists (and is executable) on the system where it
fails to run.
--
Chris Green (chris at halon.org.uk)
More information about the main
mailing list