Edit cronjobs "crontab -e"
First we open crontab to make changes to jobs by entering
crontab -e
command Then we activate edit mode by clicking
i
letter After editing we need to exit from edit mode by clicking
Esc
button Then we click
:wq
to save the changes
00 21 * * * php /var/www/html/services_cron/job_payments/index.php >> /var/log/job_payments.log 2>&1
By adding the line above, we tell
cronjob
to run the following file every day at
21:00
/var/www/html/services_cron/job_payments/index.php
And write output to the log file
/var/log/job_payments.log
by Valeri Tandilashvili
3 years ago
Linux
Cronjobs
0
Pro tip: use ```triple backticks around text``` to write in code fences