run script at startup or after login
hi,
i have one script which i want to run at boot time or after login can any one help me, how to do this. |
If you want the script to be execute on system boot time. You can set @reboot parameter in cron
@reboot /path/to/script http://www.thegeekstuff.com/2009/06/...ntab-examples/ http://www.cyberciti.biz/faq/linux-e...system-reboot/ |
or
if it is cent and depending on what it is you need to do create a script and drop it in "/etc/profile.d" but be VERY careful that is dose NOT conflict with some other script that is NEEDED |
need to give execute permission for the script placed under /etc/profile.d/
|
:twocents:
Another option is to include in a start up file like /home/user/.xinitrc or /home/user/.config/openbox/autostart . Depends on your set up. ( XFCE , GNOME , Openbox et cettera). |
/etc/init.d/rc.n
here you can set the "Snn" process and the "Knn" process where "nn" is the number of the process. I warn you do not edit existing files because your system could not boot up anymore. |
it boils down to
just WHAT is it doing what dose it need to do then the "best" ( or a "good" place) and or how it is ran can be determined a start up cron job a user specific session universal settings a back up script and so on |
All times are GMT -5. The time now is 03:24 AM. |