Inactive Tutor answered 05/26/19
Given some script file, call it myscript.sh. Run the command "source myscript.sh".
Inactive Tutor answered 05/26/19
Given some script file, call it myscript.sh. Run the command "source myscript.sh".
Inactive Tutor answered 04/28/19
You must have .sh extension on the file and set the executable permission using chmod
Then you run it by inputting its name at the command prompt.
If you want to run the script in its own shell then you just do > sh filename.sh
# change the perms.
chmod a+x script.bash
# execute
./script.bash
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.