Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: Awake from sleep()

by cmilfo (Hermit)
on Nov 04, 2002 at 22:57 UTC ( [id://210325]=note: print w/replies, xml ) Need Help??


in reply to Re: Awake from sleep()
in thread Awake from sleep()

Sounds like the socket solution might work. I mentioned below (in another reply) that the code needs to be platform independent. Is this possible with a socket? And, do you think adding socket communication would be overkill?

until ($time_to_die) { # listen on socket for N seconds # check files, client, etc }

Replies are listed 'Best First'.
Re: Re: Re: Awake from sleep()
by John M. Dlugosz (Monsignor) on Nov 04, 2002 at 23:00 UTC
    How about a pm module that provides for simple blocking event flags. It can contain platform-specific code for known cases, and sockets for all else. That's like File::Copy, which uses native primitives in those cases where it can, and does it itself if it must or doesn't know of a better way.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-24 09:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found