i want a daemon will check somthing every 10 minute
how do this in rails?
bin liu wrote:
i want a daemon will check somthing every 10 minute
how do this in rails?
Rails_cron, or script/runner. Google is your friend.
On 3/27/06, bin liu [email protected] wrote:
i want a daemon will check somthing every 10 minute
how do this in rails?
I have exactly the same thing. You can search the list archives for my
discussion with Kyle and Francois about it. Try: “periodic updater”
If you need some example code, maybe you’d like to take a look at the
code on the SVN repo at http://svn.berlios.de/svnroot/repos/motiro
Cheers,
Thiago A.
Alex Y. wrote:
bin liu wrote:
i want a daemon will check somthing every 10 minute
how do this in rails?Rails_cron, or script/runner. Google is your friend.
Yea, I was thinking about adding a cron job to script/runner. Or even
not script/runner. But you can create a simple script
that loads the Rails environment. I mention that because I couldnt
tell if my scripts were loaded properly through runner.
For example (most of the script, no runner used):
require File.dirname(FILE) + ‘/…/…/config/environment’
ctr = 0
Iterate through the user links
and extract the various keywords.
for link in UserLink.find(:all)
end
–
Berlin B.
(ramaza3 on freenode)
http://www.newspiritcompany.com
also checkout alpha version of botverse:
http://www.newspiritcompany.com:8086/universe_home
Alex Y. wrote:
bin liu wrote:
i want a daemon will check somthing every 10 minute
how do this in rails?
Rails_cron, or script/runner. Google is your friend.
sorry ,i can not access google/gmail/group