Saturday, April 11, 2009

Crontab cheatsheet

I usually forget the fields order for crontab, so I decided to put it here as a cheatsheet...

# minute (0-59),
# | hour (0-23),
# | | day of the month (1-31),
# | | | month of the year (1-12),
# | | | | day of the week (0-6 with 0=Sunday).
# | | | | | commands
3 2 * * 0,6 /some/command/to/run
3 2 * * 1-5 /another/command/to/run


To make your life easier you can also use this as a header on your crontab file.

Readers who read this page, also read:




Bookmark and Share My Zimbio http://www.wikio.com

0 comments: