krax1337
krax1337

Reputation: 563

whenever gem error No such file or directory - crontab

I dont know what problem is this. this my problem

This is console output.

$ 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>'

Upvotes: 1

Views: 1961

Answers (1)

Roman Kiselenko
Roman Kiselenko

Reputation: 44370

Whenever is a Ruby gem that provides a clear syntax for writing and deploying cron jobs.

The software utility cron is a time-based job scheduler in Unix-like computer operating systems, you can't use it on windows machine.

Setting up a cron job in Windows

Upvotes: 2

Related Questions