sorry, very OT: No such file or directory
Sorry for being so OT, but maybe somebody can point
me to the correct mailing list (if there is one)
or somewhere else where I can get help...
The problem I'm having sounds ridiculous: I'm trying
to call a shell script and get a "No such file or
directory" error. The file IS there and executable
and I DID put a ./ in front of it ;)
First I thought the script contains a command or
library call that's not being found or something,
so I straced it:
svr1:/cdrom/accmgnt/Linux/setup # ./nds-install
bash: ./nds-install: No such file or directory
svr1:/cdrom/accmgnt/Linux/setup #
svr1:/cdrom/accmgnt/Linux/setup # strace ./nds-install
execve("./nds-install", ["./nds-install"], [/* 59 vars */]) = 0
strace: exec: No such file or directory
svr1:/cdrom/accmgnt/Linux/setup #
Any idea where to get help on this ? (It's Novell's
EDirectory I'm trying to install, but the guys in Provo
are still asleep now, I think ;)
Bjoern Engels
---------------------------------------------
E-Mail: Bjoern Engels
The problem I'm having sounds ridiculous: I'm trying to call a shell script and get a "No such file or directory" error. The file IS there and executable and I DID put a ./ in front of it ;) Look at the first line. It contains the interpreter (like #!/bin/bash) if the interpreter given there, doesn't exist, it doesnt work. another thing is with dos-files: if the script is in DOS format, the interpreter can't be found, too
hth Markus -- _____________________________ /"\ Markus Gaugusch ICQ 11374583 \ / ASCII Ribbon Campaign markus@gaugusch.dhs.org X Against HTML Mail / \
Thanks a lot, Markus :)
Look at the first line. It contains the interpreter (like #!/bin/bash)
It did contain #!/bin/sh
another thing is with dos-files: if the script is in DOS format, the interpreter can't be found, too
That must have been it - I copied and pasted all the 2243 lines into a new file - and now it's running.
Markus
Bjoern Engels
---------------------------------------------
E-Mail: Bjoern Engels
Bjoern Engels wrote:
another thing is with dos-files: if the script is in DOS format, the interpreter can't be found, too
That must have been it - I copied and pasted all the 2243 lines into a new file - and now it's running. next time try recode or under suse the alias dos2unix ;-) saves you a lot of work :)
Sven -- intraDAT AG http://www.intradat.com Wilhelm Leuschner Strasse 9-11, 60329 Frankfurt Tel: +49-69-25629-0 Fax: +49-69-25629-256
participants (3)
-
Bjoern Engels
-
Markus Gaugusch
-
Sven Michels