Reputation: 18318
What is the best way to determine if a cron job has run? Is there a log? What techniques do people use?
Upvotes: 17
Views: 26400
Reputation: 1225
Cron on mac automatically logs user's jobs into
/var/mail/{username}
Upvotes: 6
Reputation: 355
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
Upvotes: 15
Reputation: 10997
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
Upvotes: -4
Reputation: 18318
I just redirected the output of the cron script >> to a file and that seemed to work well enough.
Upvotes: 3