Re: Writing a daemon that runs on a schedule

2012-05-15 Thread shawn wilson
On May 15, 2012 11:42 AM, "Randal L. Schwartz" wrote: > > > "Lorenzo" == Lorenzo Thurman writes: > > Lorenzo> I'd like to write a perl daemon that runs every hour. > > cron(8) perhaps? > I agree with Randall - keep it simple, use cron. You'll thank yourself later.

Re: Writing a daemon that runs on a schedule

2012-05-15 Thread Randal L. Schwartz
> "Lorenzo" == Lorenzo Thurman writes: Lorenzo> I'd like to write a perl daemon that runs every hour. cron(8) perhaps? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comed

Re: Writing a daemon that runs on a schedule

2012-05-09 Thread Lorenzo Thurman
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 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 p

Re: Writing a daemon that runs on a schedule

2012-05-09 Thread Shlomi Fish
Hi Lorenzo, On Wed, 9 May 2012 11:19:30 -0500 Lorenzo Thurman 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 whe

Writing a daemon that runs on a schedule

2012-05-09 Thread Lorenzo Thurman
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 b