What is the best way to determine if a cron job has run? Is there a log? What techniques do people use?
With macos Monterey it seems you should use the following shell command
log show --process cron
you can add --info and/or --debug if required
I just redirected the output of the cron script >> to a file and that seemed to work well enough.
tail -f /var/log/syslog | grep CRON
It can happen that "syslog" is not located in "/var/log/", in this case just run the following line to get its location:
whereis syslog
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With