每当gem错误没有此类文件或目录时-crontab

时间:2018-06-30 08:24:49

标签: ruby-on-rails ruby whenever

我不知道这是什么问题。 this my problem

这是控制台输出。

$ whenever --update-crontab
Системе не удается найти указанный путь.
C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/whenever-0.10.0/lib/whenever/command_line.rb:77:in `popen': No such file or directory - crontab - (Errno::ENOENT)
        from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/whenever-0.10.0/lib/whenever/command_line.rb:77:in `write_crontab'
        from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/whenever-0.10.0/lib/whenever/command_line.rb:38:in `run'
        from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/whenever-0.10.0/lib/whenever/command_line.rb:6:in `execute'
        from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/whenever-0.10.0/bin/whenever:44:in `<top (required)>'
        from C:/RailsInstaller/Ruby2.3.3/bin/whenever:22:in `load'
        from C:/RailsInstaller/Ruby2.3.3/bin/whenever:22:in `<main>'

1 个答案:

答案 0 :(得分:1)

Whenever是Ruby的宝石,提供了用于编写和部署 cron 作业的清晰语法。

软件实用程序cron类Unix 计算机操作系统中的基于时间的作业调度程序,您不能在Windows计算机上使用它。

Setting up a cron job in Windows