running a .sh script
Am trying to run a .sh script file. Have been away from linux for a few months, been trying to remember how to run one. Have tried the old ./ but doesn't work, i know its similar but can't remember. Anyone help me out?
|
check permissions set to executable.
check that your $PATH has '.' |
try
# sh scriptfile.sh # bash scriptfile.sh |
You can run bash using the script as an argument,
Code:
$ bash /path/to/your/script.sh Code:
$ cd /path/to/your Code:
$ export PATH=${PATH}:/path/to/your |
All times are GMT -5. The time now is 09:09 PM. |