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

Click here to return to the 'Scripts to enable cron tasks to run on time' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Scripts to enable cron tasks to run on time
Authored by: Yelsmek on Mar 30, '04 12:40:53AM

Each of the alternative suggestions above will execute cron-type scripts that were not executed while the system slept -- AFTER the system wakes up. This is fine for tasks that are not time dependant, such as the maintenance scripts.

However, none of them have the unique feature the thread creator's tool offers: waking the system at specific times to run the scripts at the regularly scheduled time -- for instance, to record your favorite mp3 talk-radio stream.

The author's dailyWakeup script that employs the power management API to do this is a very useful tool I've been looking for for quite some time.


If I might suggest an enhancement that would eliminate the need for an extra configuration file: examine the crontab file(s) and allow the user to specify which of those events should be scheduled to wake the computer a few minutes beforehand.

P.S. Another annoyance is that the web server ceases to function when the system goes to sleep!

[ Reply to This | # ]