Ruby on Rails如何在Windows 10中的cron入门 [英] Ruby on Rails how to get started with whenever cron in Windows 10
问题描述
我需要在Rails上使用ruby在Windows中创建cronjob。
我为此使用了无论何时何地,但对此并没有正确的认识。
请让我知道是否还有其他方法。
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.
预先感谢。
推荐答案
软件实用程序 cron
是基于类Unix
计算机操作系统。您无法使用 cron
,因为您正在使用 Windows
。我建议您尝试 cygwin
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是:
大量的GNU和开放源代码工具,提供了类似于Windows上Linux发行版的
功能。
a large collection of GNU and Open Source tools which provide functionality similar to a Linux distribution on Windows.
Cygwin不是:
一种运行本机的方法Windows上的Linux应用程序。如果要使其在Windows上运行,则必须从源代码重建
应用程序。
a way to run native Linux apps on Windows. You must rebuild your application from source if you want it to run on Windows.
这篇关于Ruby on Rails如何在Windows 10中的cron入门的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!