Hi All, I''m a newbie for RoR. Now, I want to create a background task: send an email at 6 pm every day. How can I create this task? Thanks, Rod Dong -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060519/acde9ef9/attachment.html
cron *nix or a scheduled task under Windows. Nothing to do with Rails (a web development framework) Ross -----Original Message----- From: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org]On Behalf Of Dong Rod Sent: Friday, 19 May 2006 4:27 PM To: rails@lists.rubyonrails.org Subject: [Rails] How to create a background task? Hi All, I''m a newbie for RoR. Now, I want to create a background task: send an email at 6 pm every day. How can I create this task? Thanks, Rod Dong
I''ve not used it yet, but think railscron could be what you''re looking for: http://kylemaxwell.com/articles/2006/01/06/railscron-0-1 Dong Rod wrote:> Hi All, > > I''m a newbie for RoR. Now, I want to create a background task: send an > email > at 6 pm every day. How can I create this task? > > Thanks, > Rod Dong > ------------------------------------------------------------------------ > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
"Dong Rod" <mails.rod.dong@gmail.com> writes:> Hi All, > > I''m a newbie for RoR. Now, I want to create a background task: send an email > at 6 pm every day. How can I create this task? >Look at the rails wiki on creating background tasks. Set up a cron job which uses the runner script to execute the function which will control sending of the email. HTH. -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com Read my blog at: http://cuttingtheredtape.blogspot.com/ ,---- | Great wits are sure to madness near allied, | And thin partitions do their bounds divide. | | (John Dryden, Absalom and Achitophel, 1681) `----