T
T
TERRAN472016-07-21 10:35:22
linux
TERRAN47, 2016-07-21 10:35:22

How to add entry correctly in Centos6 crontab?

Good afternoon, how to correctly add an entry
from the Laravel 5 documentation to the crontab task scheduler
* * * * * php /path/to/artisan schedule:run » /dev/null 2>&1
where path is my path, (another question after path must be deleted / to ?)
how to save inserted record in centos? it's done differently than ubuntu....

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
CityCat4, 2016-07-22
@CityCat4

Editing a crontab is done the same everywhere - in centos, in bubuntu and even in FreeBSD. The first five fields are minutes, hours, days of the month, monthA, days of the week. Asterisk - every time, that is, "five stars" - execute the script every minute.
The sixth field is the command, which is simply passed to the shell. In the /etc/crontab system crontab, the sixth field is the username, and the command is the seventh.
man crontab, however.

S
sawa4, 2016-07-26
@sawa4

D.d. Did you earn cron?
I do like this:
But for some reason it doesn't work for me (Debian 7.8)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question