The conversation on this page has been archived and is no longer active.

how to make cron wake my Mac?

Message #1 - Posted 2007/08/18 - Richard

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

Message #2 - Posted 2007/08/18 - Chris Ridd

On 2007-08-18 14:01:26 +0100, Richard 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

Message #3 - Posted 2007/08/18 - Jaimie Vandenbergh

On Sat, 18 Aug 2007 14:01:26 +0100, Richard 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

The cure for boredom is curiosity. There is no cure for curiosity. -- Dorothy Parker

Message #4 - Posted 2007/08/18 - Richard

Previously, Chris Ridd wrote:

On 2007-08-18 14:01:26 +0100, Richard 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

Message #5 - Posted 2007/08/18 - Nick Bell

Jaimie Vandenbergh wrote:

On Sat, 18 Aug 2007 14:01:26 +0100, Richard 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

Need Help? Have a Question?

Looking for more help, comments, and answers?

Ask your questions on Ask Different. Ask Different is a community of Apple users ready to help.