Chris Muench
Chris Muench

Reputation: 18318

Mac OS X cron log / tracking

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

Answers (4)

storenth
storenth

Reputation: 1225

Cron on mac automatically logs user's jobs into

/var/mail/{username}

Upvotes: 6

VaughanR
VaughanR

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

vijay
vijay

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

Chris Muench
Chris Muench

Reputation: 18318

I just redirected the output of the cron script >> to a file and that seemed to work well enough.

Upvotes: 3

Related Questions