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

perl scripts and sleep

Message #1 - Posted 2005/09/19 - stephen

When I run a long running perl script and go away for awhile, when the computer goes to sleep (power save or whatever you call it) it seems like the perl script is also suspended until I wake the machine up. Is this how things actually behave on OX X 10.3.9?

Stephen

Message #2 - Posted 2005/09/20 - Bob Harris

Previously, stephen@nomail.com wrote:

When I run a long running perl script and go away for awhile, when the computer goes to sleep (power save or whatever you call it) it seems like the perl script is also suspended until I wake the machine up. Is this how things actually behave on OX X 10.3.9?

Stephen

Yes. When the system goes to sleep, everything except standby power for the memory is turned off.

Bob Harris

Message #3 - Posted 2005/09/24 - stephen

Bob Harris wrote:

Previously, stephen@nomail.com wrote:

When I run a long running perl script and go away for awhile, when the computer goes to sleep (power save or whatever you call it) it seems like the perl script is also suspended until I wake the machine up. Is this how things actually behave on OX X 10.3.9?

Stephen

Yes. When the system goes to sleep, everything except standby power for the memory is turned off.

Bob Harris

Is there anyway for a long running script to prevent the system from going to sleep?

Stephen

Message #4 - Posted 2005/09/26 - Bob Harris

Previously, stephen@nomail.com wrote:

Bob Harris wrote:

Previously, stephen@nomail.com wrote:

When I run a long running perl script and go away for awhile, when the computer goes to sleep (power save or whatever you call it) it seems like the perl script is also suspended until I wake the machine up. Is this how things actually behave on OX X 10.3.9?

Stephen

Yes. When the system goes to sleep, everything except standby power for the memory is turned off.

Bob Harris

Is there anyway for a long running script to prevent the system from going to sleep?

Stephen

You could have your script use 'pmset' to change the sleep settings.

I would suggest you go over to http://MacOSXHints.com and do some searching. This is just the kind of thing they like to do over there.

Bob Harris

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.