Hi
I have been confused for a while now about why my cron jobs don't always run. I think I now understand that cron does not run when the machine goes into power save after I have left it for 20 mins.
Is there any way to get cron to 'wake' the machine or do I have to turn off the power save mode altogether?
Regards
Richard
On 2007-08-18 14:01:26 +0100, Richard rjt-usenet@redacted.invalid said:
Hi
I have been confused for a while now about why my cron jobs don't always run. I think I now understand that cron does not run when the machine goes into power save after I have left it for 20 mins.
Is there any way to get cron to 'wake' the machine or do I have to turn off the power save mode altogether?
I would look at the Energy Saver system preference to arrange for the Mac to be woken up on a particular schedule, and then get your cron jobs to run just afterwards. Or use the pmset(1) command instead of Energy Saver.
Cheers,
Chris
On Sat, 18 Aug 2007 14:01:26 +0100, Richard rjt-usenet@redacted.invalid wrote:
Hi
I have been confused for a while now about why my cron jobs don't always run. I think I now understand that cron does not run when the machine goes into power save after I have left it for 20 mins.
Is there any way to get cron to 'wake' the machine or do I have to turn off the power save mode altogether?
In System Prefs, Energy Saver there's an unobtrusive button labelled Schedule... that you can use to trigger a wakeup a couple of minutes before your cron jobs fire.
Cheers - Jaimie
In article 5io9frF3qdg3uU1@redacted.invalid, Chris Ridd chrisridd@redacted.invalid wrote:
On 2007-08-18 14:01:26 +0100, Richard rjt-usenet@redacted.invalid said:
Hi
I have been confused for a while now about why my cron jobs don't always run. I think I now understand that cron does not run when the machine goes into power save after I have left it for 20 mins.
Is there any way to get cron to 'wake' the machine or do I have to turn off the power save mode altogether?
I would look at the Energy Saver system preference to arrange for the Mac to be woken up on a particular schedule, and then get your cron jobs to run just afterwards. Or use the pmset(1) command instead of Energy Saver.
Cheers,
Chris
Thanks, pmset was exactly what I was after.
Richard
Jaimie Vandenbergh wrote:
On Sat, 18 Aug 2007 14:01:26 +0100, Richard rjt-usenet@redacted.invalid wrote:
Hi
I have been confused for a while now about why my cron jobs don't always run. I think I now understand that cron does not run when the machine goes into power save after I have left it for 20 mins.
Is there any way to get cron to 'wake' the machine or do I have to turn off the power save mode altogether?
In System Prefs, Energy Saver there's an unobtrusive button labelled Schedule... that you can use to trigger a wakeup a couple of minutes before your cron jobs fire.
Cheers - Jaimie
While we're talking cron, is there a cron job editor better than Cronnix (which seems to live up to its name)? I know it's not cool using a special app, I should be using vim or something but life is too short (although not too short for writing cron jobs)
Nick