46
19
Does the cron which comes with OS X log its actions anywhere?
I'm not looking for output of any particular cron job, but rather log of what cron is doing. On a couple linux machines I've checked, there's /var/log/cron
which has contents like:
Apr 26 11:00:01 localhost crond[27755]: (root) CMD (/root/bin/mysql-backup)
Apr 26 11:01:01 localhost crond[27892]: (root) CMD (run-parts /etc/cron.hourly)
Apr 26 11:07:01 localhost crond[28138]: (root) CMD (/usr/local/bin/python /home/
user1/scripts/pythonscript.py)
Apr 26 11:18:18 localhost crontab[28921]: (user2) LIST (user2)
Apr 26 11:18:22 localhost crontab[28929]: (user2) BEGIN EDIT (user2)
Apr 26 11:18:59 localhost crontab[28929]: (user2) REPLACE (user2)
This shows when jobs ran, when users viewed or edited crontabs, etc. This stuff is nowhere that I've found on my Snow Leopard machine.
1Works on Yosemite – nickcoxdotme – 2015-07-22T18:34:47.660
Works on Snow Leopard, 10.6.8 (yes, I'm an antique...) – Daniel Griscom – 2016-07-10T02:29:27.557
Works on El Capitan – rottweiler – 2017-04-28T21:08:41.827
2/System/Library/LaunchDaemons/com.apple.syslogd.plist: Operation not permitted while System Integrity Protection is engaged (10.13.2 High Sierra).
Do I have to disable SIP? Thanks! – Shane Lu – 2018-01-04T05:23:20.177
Wow, much simpler. Have an upvote. I wonder if this would've worked on Snow Leopard. – Doug Harris – 2013-05-15T13:50:33.467
2Works on Mavericks – Clustermagnet – 2014-05-08T14:43:15.290