UNIX scripts when computer sleeps

wake up the computer and run the script in the designated minute.
Hans Aberg wrote on :
One can use 'cron' to automate scripts, but it does not work if the computer sleeps in the designated crontab minute. Then there are two alternatives, I would want to do: First, run the script when the computer wakes up, as a delayed script. Second, wake up the computer and run the script in the designated minute. Can any, or both, of these alternatives be achieved?
Tom Stiller replied on :

In article haberg-2211051528330001@redacted.invalid, haberg@redacted.invalid (Hans Aberg) wrote:

One can use 'cron' to automate scripts, but it does not work if the computer sleeps in the designated crontab minute. Then there are two alternatives, I would want to do: First, run the script when the computer wakes up, as a delayed script. Second, wake up the computer and run the script in the designated minute. Can any, or both, of these alternatives be achieved?

Check out anacron, available via fink or VersionTracker.

Donald Hall replied on :

In article haberg-2211051528330001@redacted.invalid, haberg@redacted.invalid (Hans Aberg) wrote:

One can use 'cron' to automate scripts, but it does not work if the computer sleeps in the designated crontab minute. Then there are two alternatives, I would want to do: First, run the script when the computer wakes up, as a delayed script. Second, wake up the computer and run the script in the designated minute. Can any, or both, of these alternatives be achieved?

Hans,

Take a look at Script Timer, a little application that I publish. It can schedule scripts (AppleScript, perl, and shell scripts) to run when the computer wakes from sleep.

There are also ways to wake the computer - including once per day with the Energy Saver preferences pane.

Don

Hans Aberg replied on :

In article spamback-2F600B.23301622112005@redacted.invalid, Donald Hall spamback@redacted.invalid wrote:

One can use 'cron' to automate scripts, but it does not work if the computer sleeps in the designated crontab minute. Then there are two alternatives, I would want to do: First, run the script when the computer wakes up, as a delayed script. Second, wake up the computer and run the script in the designated minute. Can any, or both, of these alternatives be achieved?

Take a look at Script Timer, a little application that I publish. It can schedule scripts (AppleScript, perl, and shell scripts) to run when the computer wakes from sleep.

If you want to place an ad for your product, perhaps you should add a link. :-) -- Even though it was easy to net-search find it.

There are also ways to wake the computer - including once per day with the Energy Saver preferences pane.

Thank you for the suggestion. If one has a daily cron script, this way, one can make sure the computer is awake in the crontab line minute.