i want a daemon will check somthing every 10 minute how do this in rails? -- Posted via http://www.ruby-forum.com/.
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. -- Alex
On 3/27/06, bin liu <liubin@necas.nec.com.cn> 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 Arrais
Alex Young 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 Brown (ramaza3 on freenode) http://www.newspiritcompany.com also checkout alpha version of botverse: http://www.newspiritcompany.com:8086/universe_home
Alex Young 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 -- Posted via http://www.ruby-forum.com/.