On May 3, 2004, at 6:37 PM, Jerry LeVan wrote:
Hmmm, maybe it will work... I started the following shell script
#!/bin/sh i=1 while true do echo $i i=`expr $i + 1 ` done
I forced the system to sleep for a few seconds, woke it up and the script kept on trucking...
Oh, certainly - you can interrupt basically anything at all on the computer with sleep, and it will simply continue where it left off. I do this all the time with compilations, long-running scientific experiments, regression tests, etc. on my PowerBook. The wake-from-sleep functionality is very robust and fast.
The only trouble you're likely to see is when an external resource (like a network or a printer) doesn't like you pausing in the middle of something you're doing to it, and then some operations involving that resource might not just continue where you left off.
-Ken
