Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] Execute a file

>[marshallj@datasrv bin]$ cat test.sh
>echo test
>[marshallj@datasrv bin]$ ls -l test.sh
>-rwxr-x---   1 marshall marshall       20 Sep 27 03:21 test.sh
>[marshallj@datasrv bin]$ ./test.sh
>bash: ./test.sh: Permission denied
>[marshallj@datasrv bin]$ sh test.sh
>It almost seems as if my shell isn't using the first line to determine 
>what to use to execute the file. Now this is weird! Any thoughts?

Do a strace ./test.sh