Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Run programs at startup via crontab' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Run programs at startup via crontab
Authored by: maartensneep on Nov 05, '04 03:16:45PM
Normally (that is when you leave your computer on all the time) several maintenance scripts are run in the early morning hours. Since most people will leave their machines asleep during the night, or even turned off altogether, these maintenance scripts are never run. Depending on your reboot habits, you could add

@reboot periodic daily
to the master crontab in /etc/crontab. If you reboot infrequently, you could add @reboot periodic weekly and @reboot periodic monthly as well. weekly takes some time, but I believe the lot is run in the background anyway, so that isn't too bad (weekly updates refresh the locate database for quick command-line searches). Maarten

[ Reply to This | # ]