Ruby on Rails how to get started with whenever cron in Windows 10

为君一笑 提交于 2019-12-25 17:15:39

问题


I need to create a cronjob in windows using ruby on rails. I am using 'whenever' gem for that but not getting proper idea about that. Please let me know if there any alternative way for that.

Thanks in advance.


回答1:


The software utility cron is a time-based job scheduler in Unix-like computer operating systems. You can't use cron because you're using Windows. I suggest you try cygwin

Cygwin is:

a large collection of GNU and Open Source tools which provide functionality similar to a Linux distribution on Windows.

Cygwin is not:

a way to run native Linux apps on Windows. You must rebuild your application from source if you want it to run on Windows.

How do you run a crontab in Cygwin on Windows?



来源:https://stackoverflow.com/questions/47920501/ruby-on-rails-how-to-get-started-with-whenever-cron-in-windows-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!