Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Waiting for Alarm

by traveler (Parson)
on Feb 16, 2008 at 18:49 UTC ( #668331=note: print w/replies, xml ) Need Help??


in reply to Waiting for Alarm

You can pause a perl script waiting for an alarm with:
use POSIX qw(pause); $SIG(ALRM) = ... ... alarm $seconds; ... pause; #wait for a signal without #using CPU time

Replies are listed 'Best First'.
Re^2: Waiting for Alarm
by n8ur (Acolyte) on Feb 16, 2008 at 19:15 UTC
    Perfect! Thanks.

    John

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://668331]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2016-09-25 06:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (464 votes). Check out past polls.