Created
August 6, 2013 09:26
-
-
Save knorthfield/6163061 to your computer and use it in GitHub Desktop.
Setting up Cron on OS X
This file contains hidden or 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
1 Start up Terminal | |
2 Type "cd ~/" to go to your home folder | |
3 Type "touch .bash_profile" to create your new file. | |
4 Edit .bash_profile with your favorite editor (or you can just type "open -e .bash_profile" to open it in TextEdit. | |
5 Type ". .bash_profile" to reload .bash_profile and update any functions you add. | |
6 Add "export EDITOR=/usr/bin/nano" to make nano default editor | |
7 crontab -e | |
8 Add Follwing template: | |
# .---------------- minute (0 - 59) | |
# | .------------- hour (0 - 23) | |
# | | .---------- day of month (1 - 31) | |
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ... | |
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat | |
# | | | | | | |
# * * * * * command to be executed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment