develooper Front page | perl.beginners | Postings from May 2012

Writing a daemon that runs on a schedule

Thread Next
From:
Lorenzo Thurman
Date:
May 9, 2012 09:19
Subject:
Writing a daemon that runs on a schedule
Message ID:
35A880C7-D503-4E50-B627-5EAF55593FB8@thethurmans.com
I'd like to write a perl daemon that runs every hour. I've found Proc::Daemon and Timer::HiRes, but I'm not sure how to put the pieces together. In particular, I'd like to know how to have a given sub routine called when the timer expires. I don't need precision with the timer. Any ideas would be greatly appreciated.

"Yes Virginia, there is a Chaminade"
--unknown

Lorenzo Thurman
lorenzo@thethurmans.com





Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About