From: Robert Klemme Date: 2012-01-25T18:23:29+09:00 Subject: Re: Register an action to be done at a later time On Wed, Jan 25, 2012 at 12:14 AM, Marc Heiler wrote: >> Why do you want to write a cron replacement? > > I can't use cron on Windows. But Windows does have a scheduling service as well. >> You could as well make your script / shell create at or cron jobs >> in the background so it would just be a convenient proxy for those. >> You could leverage the robustness of those tools while providing >> a convenient user interface. > > Yup, think so too. Now that I set my head to it, I'll go the route > of starting a new project. > > If anyone has suggestions on good daemons or other ruby projects > around that theme (daemons and cron / at time tasks), I am all ears! I'd just use the demon of the platform. You can abstract away the different backends with one class or one set of classes per platform. In fact, this seems like a very valuable gem to me. It would provide: - a means from Ruby to reliably schedule tasks - a unified frontend and convenient scheduling language (might be tricky but rewarding) - maybe excute all jobs as Ruby programs or alternatively invoking a binary (which also would mean a script with proper shebang) Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/