Created
April 2, 2013 00:50
-
-
Save hanksudo/5289084 to your computer and use it in GitHub Desktop.
Crontab job practices
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
PATH=/usr/local/bin:/usr/bin | |
# MAILTO=hank | |
# min hour day month weekday command | |
# * * * * * * | |
*/1 * * * * script.sh # 每一分鐘 | |
10 10 * * * script.sh # 每天早上 10:10 | |
10 10 1 * * script.sh # 每個月第一天的 10:10 | |
30 9 * * 1-5 script.sh # 週一到週五 09:30 | |
0 12 * * sub script.sh # 週日 12:00 | |
# 每隔五分鐘, 週一到週五, 早上九點到下午一點半 | |
0-30/5 13 * * 1-5 script.sh | |
*/5 9-12 * * 1-5 script.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment