开发者

Ruby checking rss feed every X minutes

I have a simple app that fetches an RSS feed and downloads some data. How can I get my ruby app to check the RSS feed every X minutes? should I just wrap all the code in a loop wi开发者_开发知识库th a sleep?


If you like the old unix stuff, you should use cron. A nice Ruby alternative is clockwork (which is way easier to configure).


You can use Cron if you work with Linux or Task Scheduler in case of Windows.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜