[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
newbie question about an executable shell script
From: |
GoogleGrps |
Subject: |
newbie question about an executable shell script |
Date: |
27 May 2001 13:14:41 -0700 |
I'm using bash 2.03 on a Red Hat Linux box. According to
http://www.gnu.org/manual/bash/html_chapter/bashref_3.html#SEC52
"In other words, executing
filename arguments
is equivalent to
executing bash filename arguments
if filename is an executable shell script."
I wrote a simple test script and chmod 777 test
#!/bin/bash
echo hi
When I try to run the script I get the following results
#./test
bash: ./test: Permission denied
#bash test
hi
My question is why do I get Permission denied with ./test but not with bash
test?
-AC
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- newbie question about an executable shell script,
GoogleGrps <=