tags:

views:

64

answers:

3
A: 

cd to the directory that contains the script, or put it in a bin folder that is in your $PATH

then type

./scriptname.sh

if in the same directory or

scriptname.sh

if it's in the bin folder.

John Boker
This will only work if the script has the execute bit set. That probably needs to be addressed.
Bryan Oakley
A: 

$prompt: /path/to/script and hit enter. note you need to make sure the script has execute permissions.

prodigitalson
Typo: s/not/note/
Paul R
@Paul: thanks... corrected. :-)
prodigitalson
A: 

Yet another way to execute it (this time without setting execute permissions):

bash /path/to/scriptname
Dennis Williamson