Laravel 5: crontab -e command does not work

Asked

Viewed 219 times

0

Good afternoon, I created a command in the Laravel to make 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, but when typing the crontab -and the answer I get from the console is:

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

Could someone help?

1 answer

0

Two alternatives:

  1. You are not root. The command crontab is only visible in mode root.
  2. You are root, but did not install the crontab. Install first.
  • How can I install crontab?

  • You are using Linux. Check the documentation of your Linux distribution. Each distro (Red Hat, Debian, Ubuntu) has a different command for this. But you can only install programs when in root mode (superior or administrator).

  • I’m using windows as an administrator, I’ve searched some configuration documentation, but nothing..

  • crontab is a Linux command. Does not exist on Windows.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.