Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个简单的应用程序,它可以获取 RSS 提要并下载一些数据。如何让我的 ruby 应用程序每 X 分钟检查一次 RSS 提要?我应该把所有代码都包装在一个循环中吗?
如果你喜欢旧的 unix 东西,你应该使用cron。一个不错的 Ruby 替代品是发条(更容易配置)。
如果您使用 Linux,则可以使用Cron ,如果使用 Windows,则可以使用Task Scheduler。