Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: how do i create a daemon ??

by strredwolf (Chaplain)
on Sep 28, 2001 at 22:53 UTC ( [id://115474]=note: print w/replies, xml ) Need Help??


in reply to how do i create a daemon ??

I don't know what those perl scripts are doing, but still...

  • Use cron, and write your perl scripts to be one-shot deals. cron will run your script on time every time, so you don't have to fork 'em.
  • Have your Perl scripts check for a lock file. If it exists, delay for a whort while with sleep to make sure the other finishes. When there's no lock file, write one, do what you need to do, and then delete it.
Simple is best in Perl... and Junkyard Wars...

--
$Stalag99{"URL"}="http://stalag99.keenspace.com";

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-26 01:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found