[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Cron



Craig Muth sent me the following replacement for sleep() which
apparently doesn't tie up the Mac.  I haven't tested it:

use Mac::Events;
sub pause {
  my ($time) = @_;
  my $start = time();
  WaitNextEvent until time > ($start + $time);
}

>I've used Frontier to do this in the past, but would like to use 
MacPerl 
>instead. All I've been able to find that's relevant is the sleep() 
>function, but this seems to tie up the Mac. My idea is to periodically 
>close files in order to back them up and then reopen them.


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch