LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   running shell scripts (https://www.linuxquestions.org/questions/linux-newbie-8/running-shell-scripts-39028/)

salparadise 12-21-2002 05:26 AM

running shell scripts
 
er....

i can't seem to run shell scripts....(embarassed blush)

i've never done this before (a little experience with DOS batch files a few years ago)...
i have a couple of files (quake3 demo and UT file) , the quake one shows up as blah.sh and the UT one as blah.run. My redhat "bible" and other linux book are less than explanatory on executing shell scripts.
I follow instructions and come up with" permission denied" whether i am user or su to root or logged in as root.

i feel like a caveman in a spaceship!

ug!

acid_kewpie 12-21-2002 05:29 AM

presumably you still need to set them as executable

chmod +x script.sh

then it should be executable with

./script.sh

salparadise 12-21-2002 05:40 AM

thankyou so much

caveman learning


All times are GMT -5. The time now is 04:45 PM.