View Single Post
Posts: 59 | Thanked: 7 times | Joined on Jan 2010
#3546
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.
thanks a lot i will try it immediately