Skip to content

Instantly share code, notes, and snippets.

@nyimbi
Forked from nguyenthanhtung88/Enable crontab log MAC
Created February 10, 2021 05:58
Show Gist options
  • Save nyimbi/afe8cc7ac14157e0a169a0f3f79fb31d to your computer and use it in GitHub Desktop.
Save nyimbi/afe8cc7ac14157e0a169a0f3f79fb31d to your computer and use it in GitHub Desktop.
Crontab log Mac
1. `vim /etc/syslog.conf`
2. Add to end of file: `cron.* /var/log/cron.log`
3.
```
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.syslogd.plist
sudo launchctl load /System/Library/LaunchDaemons/com.apple.syslogd.plist
```
[where-is-the-cron-log-file-in-macosx-lion](http://apple.stackexchange.com/questions/38861/where-is-the-cron-log-file-in-macosx-lion)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment