Laravel 5: crontab -e command does not work

0

Good afternoon, I created a command in laravel to do a cronjob function, the next step would be to edit the cron file with the following command:

crontab -e

Then insert the line: * * * * * php / path / to / artisan schedule: run> > / dev / null 2 > & 1

As it is in the documentation, however when typing the crontab -e command the response I get from the console is:

'crontab' is not recognized as an internal command or external, operable program or batch file.

Could someone help?

    
asked by anonymous 10.01.2016 / 20:56

1 answer

0

Two alternatives:

  • You are not root . The crontab command is only visible in root mode.
  • You are root , but you have not installed crontab . Please install first.
  • 10.01.2016 / 21:02