sleep vs. cron

Wes Groleau wrote on :

Anyone know in 10.1.2 what happens if in sleep mode and time for a cron job comes around? Does it make any difference whether or not the hard disk is also "asleep" ?

I can't remember the details, but sometimes in OS 9, if I let the machine go to sleep, I had to power off to get it back.

I used display lock with password, multiple users, and separate timing for hard disk sleep. I don't know which of those did or did not affect the problem.

Tom Stiller replied on :

In article 3C449516.7BDE11F6@redacted.invalid, Wes Groleau wesgroleau@redacted.invalid wrote:

Anyone know in 10.1.2 what happens if in sleep mode and time for a cron job comes around? Does it make any difference whether or not the hard disk is also "asleep" ?

If the processor is in deep sleep, the cron job will be skipped; otherwise, it will be executed.

Lincoln Ramsay replied on :

Tom Stiller wrote:

If the processor is in deep sleep, the cron job will be skipped; otherwise, it will be executed.

Is there a way to force a computer into "light" sleep?

Is this the same as Monitor + HD powered down?

jajvj replied on :

In article 3C449516.7BDE11F6@redacted.invalid, Wes Groleau wesgroleau@redacted.invalid wrote:

Anyone know in 10.1.2 what happens if in sleep mode and time for a cron job comes around? Does it make any difference whether or not the hard disk is also "asleep" ?

My experience is that if the CPU is asleep, the job runs as soon as it wakes up. If just the disk & monitor sleep, the job runs as scheduled.

Tom Stiller replied on :

In article 3C44EB5F.8050305@redacted.invalid, Lincoln Ramsay lramsay@redacted.invalid wrote:

Tom Stiller wrote:

If the processor is in deep sleep, the cron job will be skipped; otherwise, it will be executed.

Is there a way to force a computer into "light" sleep?

Is this the same as Monitor + HD powered down?

Yes, the monitor and drive are "sleeping" but the processor is awake.

Marc Bizer replied on :

In article tomstiller-7EB826.23243715012002@redacted.invalid, Tom Stiller tomstiller@redacted.invalid wrote:

Yes, the monitor and drive are "sleeping" but the processor is awake.

What if the cron job requires the hard disk to be accessed?

Marc

Tom Stiller replied on :

In article 160120020018149435%mwithoutspacebizer@redacted.invalid, Marc Bizer mwithoutspacebizer@redacted.invalid wrote:

In article tomstiller-7EB826.23243715012002@redacted.invalid, Tom Stiller tomstiller@redacted.invalid wrote:

Yes, the monitor and drive are "sleeping" but the processor is awake.

What if the cron job requires the hard disk to be accessed?

The same thing any task that needs a sleeping drive does; it wakes it up.

Wes Groleau replied on :

Anyone know in 10.1.2 what happens if in sleep mode and time for a cron job comes around? Does it make any difference whether or not the hard disk is also "asleep" ?

How many states are there? Is there both a "deep sleep" and a "REM sleep" ? Or just asleep and awake? I don't know what is meant by "deep sleep."

Wes Groleau replied on :

The same thing any task that needs a sleeping drive does; it wakes it up.

I've noticed in OS 9 or OS X (can't remember which, maybe both) that sometimes when the hard drive is needed (or the internet connection), the application gets an error when it is not available right away. Wait until it spins up (or connects) and repeat, and it works. Easy for a human to do; takes a little extra scripting for a cron job.