View Single Post
Posts: 59 | Thanked: 7 times | Joined on Jan 2010
#3547
Originally Posted by AlMehdi View Post
You copy it into a file.. and then "chmod +x" and den "./file.sh"

1. Make a directory if you haven't
mkdir /home/opt/scripts

2. Make file (need leafpad)
leafpad /home/opt/scripts/oc-safty.sh (paste into file and save)

3. make it executable
chmod +x /home/opt/scripts/oc-safty.sh

4. Run it.
cd /home/opt/scripts/
./oc-safty.sh

You could probably put it in init.d to make it run automatically every reboot. But am not sure exactly how to do that.
my friend i follow your instructions (to the end of the script i have also put the "done", but when i run the final step.
cd /home/opt/scripts/./oc-safty.sh

i take the message cd: i can not cd to /home/opt/scripts/./oc-safty.sh