Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Play random music

by methodius (Initiate)
on Apr 08, 2001 at 10:32 UTC ( [id://70801]=note: print w/replies, xml ) Need Help??


in reply to Play random music

When I'm writing a daemon will drop a file ususally based on the PID $$ and then inside the loop test for the existence of the file and exit if the file is deleted:

open PID,">$$" or die $@;
close PID;

while (-e $$) {
do_good();
}

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2024-04-19 16:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found