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

Re: Writing a daemon that runs on a schedule

Thread Previous
From:
Lorenzo Thurman
Date:
May 9, 2012 12:29
Subject:
Re: Writing a daemon that runs on a schedule
Message ID:
0B6A26A1-74D1-4867-8A69-1A621A913639@thethurmans.com
Thank you, I'll look into them.

On May 9, 2012, at 2:13 PM, Shlomi Fish wrote:

> Hi Lorenzo,
> 
> On Wed, 9 May 2012 11:19:30 -0500
> Lorenzo Thurman <lorenzo@thethurmans.com> wrote:
> 
>> 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.
>> 
> 
> Perhaps you should look at POE, IO::Async, IO::Lambda, Reflex, or AnyEvent for
> a way to handle an event roughly every hour using an event loop. See
> http://metacpan.org/ for more information.
> 
> Regards,
> 
> 	Shlomi Fish
> 
> 
> -- 
> -----------------------------------------------------------------
> Shlomi Fish       http://www.shlomifish.org/
> Interview with Ben Collins-Sussman - http://shlom.in/sussman
> 
> The more I think about it, the more I think I should think about it some more.
>    — Clarissa Explains it All
> 
> Please reply to list if it's a mailing list post - http://shlom.in/reply .

Nobody in the game of football should be called a genius. A genius is somebody like Norman Einstein.
  - Joe Theismann

Lorenzo Thurman
lorenzo@thethurmans.com








Thread Previous


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