Skip to content

Instantly share code, notes, and snippets.

@yoyozi
Created February 25, 2019 19:59
Show Gist options
  • Save yoyozi/3145e3fdccdb420661a001a5d7c359e4 to your computer and use it in GitHub Desktop.
Save yoyozi/3145e3fdccdb420661a001a5d7c359e4 to your computer and use it in GitHub Desktop.
On macOS High Sierra (and perhaps earlier), cron is disabled in some configurations. There is, however, still a LaunchDaemon for it.
Check to see if cron is enabled:
sudo launchctl list | grep cron
You should see com.vix.cron.plist if cron is running. If cron is not running, you should do:
sudo launchctl load -w /System/Library/LaunchDaemons/com.vix.cron.plist
That will start cron, and the -w switch will make sure it starts after reboots as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment