A common gotcha is setting cronjobs as user vs root
Shell Script Cheatsheet for Macos
crontab -e # edit cron jobs
crontab -l # list all cron jobs
Tools and Reference
Debugging CronJobs
Dry run the script we are trying to run and ensure it works as expected.
ps ax | grep cron
Check Cronjobs work
sudo crontab -e
* * * * * /bin/echo "cron works" >> /tmp/file 2>>/tmp/error