Simple shell script
Hi All,
I have a script called autorun.sh in cdrom which inturn invokes install.sh in a CDROM. autorun.sh script Code:
#!/bin/bash Code:
: No such file or directoryll.sh Thanks |
what is this variable $(dirname $0)? if it is path to the script, it should be:
Code:
#!/bin/bash |
Most likely you have some hidden control character in the script, like the windows terminator characters. They ususally make the shell to do weird things like this. Please, show us the output of
Code:
od -c autorun.sh Code:
$(dirname $0)/install.sh |
Quote:
|
I'm curious why it works. The following:
Code:
$(dirname $0)install.sh Code:
"$(dirname $0) install.sh" |
All times are GMT -5. The time now is 12:00 PM. |