This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the unix category.
Last Updated: 2024-11-21
Here's how to do a few basic things with cronjobs:
grep CRON /var/log/syslog
* * * * * /folder/myprogram
Each star represents a unit of time, with the first being the minute, the next the hour, day (of month), month (of year), and - confusingly since it breaks the order established - the day of the week.
$ crontab -l
(crontab -l 2>/dev/null; echo "* * * * * php /path/to/artisan horizon") | crontab -
Source: https://stackoverflow.com/questions/4880290/how-do-i-create-a-crontab-through-a-script
crontab -r