Last active
August 29, 2015 13:57
-
-
Save mattcannon/9573153 to your computer and use it in GitHub Desktop.
crontabs on mavericks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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