How to create a background task?


#1

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


#2

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


#3

“Dong Rod” removed_email_address@domain.invalid 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 S.
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)
`----