I want to run an executable c file on start up. Im using ubuntu. I read few how to on this topic, but things are not working so far. These are the steps i followed:
1. create myscript.sh in etc\init.d
#run c file
2. give the file permissions:
chmod +x myscript.sh
3. create a symbolic link in rc3.d:
sudo ln -s /etc/init.d/myscript.sh /etc/rc3.d/S500myscript.sh
sudo ln -s /etc/init.d/myscript.sh /etc/rc3.d/K001myscript.sh
Currently I am in runlevel 2, I switch to runlevel 3 by the following comman:
sudo init 3
I expect my c code to run..but this is not the case
I also tried this command:
sudo update-rc.d myscript.sh defaults
but no luck...any idea what i am missing?
Thank you inadvance,
Last edited by mas123; 03-09-2009 at 01:04 PM.