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


Click here to return to the 'Check system maintenance tasks at startup' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Check system maintenance tasks at startup
Authored by: Felix_the_Mac on Mar 18, '05 02:59:50PM

My favoured solution would be as follows:

1) Script to run Periodic tasks when the screen saver is activated

2) Only run tasks when the necessary time has elapsed since last run, i.e.Weekly = 7 days

3) Each time sleep is entered a check is performed to see if any of the Periodic tasks need to be run. The first one which needs to be run (in order of daily,weekly,monthly) will be executed, then the job will end.

4) The next time the screen saver activates the check is run and normally the 'daily' will be up to date so the weekly or monthly will execute. This should stop occurences were all the scripts get run 1 after the other which would be unacceptable if you came back to use the machine with the task was still running.

Does htis sound like a good system to you?
Can we do it?



[ Reply to This | # ]