Skip to content

Instantly share code, notes, and snippets.

@mattcannon
Last active August 29, 2015 13:57
Show Gist options
  • Save mattcannon/9573153 to your computer and use it in GitHub Desktop.
Save mattcannon/9573153 to your computer and use it in GitHub Desktop.
crontabs on mavericks
#to create a default crontab:
sudo touch /etc/crontab
#vi doesn't seem to work with crontab on mavericks, so set nano as the editor
export EDITOR=nano
#to edit the crontab for your user
crontab -e
#save the crontab, by pressing ctrl+x , it will then ask if you want to save the changes - press y to confirm.
#when you save the crontab, it should say 'installing new crontab'
#check that the job is listed
crontab -l
#make sure cron is running, it should already be if there is a file called crontab in etc
sudo cron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment