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

sleep vs. cron

Message #1 - Posted 2002/01/15 - Wes Groleau

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.

Message #2 - Posted 2002/01/15 - Tom Stiller

Previously, Wes Groleau 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.

Tom Stiller

PGP fingerprint = 5108 DDB2 9761 EDE5 E7E3 7BDA 71ED 6496 99C0 C7CF

Message #3 - Posted 2002/01/16 - Lincoln Ramsay

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?

--
To email, remove the nospam. \|/
. (o o) +----------------------------------------------ooO--(_)--Ooo--+

There is no emotion, there is peace. There is no ignorance, | there is knowledge. There is no passion, there is serenity. | There is no death, there is the force. -- Jedi Code |

+-------------------------------------------------------------+
Message #4 - Posted 2002/01/16 - jajvj

Previously, Wes Groleau 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.

Message #5 - Posted 2002/01/16 - Tom Stiller

Previously, Lincoln Ramsay 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.

Tom Stiller

PGP fingerprint = 5108 DDB2 9761 EDE5 E7E3 7BDA 71ED 6496 99C0 C7CF

Message #6 - Posted 2002/01/16 - Marc Bizer

Previously, Tom Stiller 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

Message #7 - Posted 2002/01/16 - Tom Stiller

Previously, Marc Bizer wrote:

Previously, Tom Stiller 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.

Tom Stiller

PGP fingerprint = 5108 DDB2 9761 EDE5 E7E3 7BDA 71ED 6496 99C0 C7CF

Message #8 - Posted 2002/01/16 - Wes Groleau

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."

Message #9 - Posted 2002/01/16 - Wes Groleau

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.

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.