Skip to content

Instantly share code, notes, and snippets.

@micheleorsi
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save micheleorsi/b3086060e37db3e18bf7 to your computer and use it in GitHub Desktop.
Save micheleorsi/b3086060e37db3e18bf7 to your computer and use it in GitHub Desktop.
crontab examples
# once a day at 23:50
50 23 * * * <command>
# every 2 hours at 00 minutes
0 */2 * * * <command>
# every hour at 29 and 59 minutes (that means every half an hour)
29,59 * * * * <command>
# every hour at 59 minutes
59 * * * * <command>
# 10th of June at 08:30 AM
30 08 10 06 * <command>
# twice a day at 11:00 and 16:00
00 11,16 * * * <command>
# every hour at 00 from 09 to 18
00 09-18 * * * <command>
# every hour at 00 from 09 to 18 only on weekday (monday to friday)
00 09-18 * * 1-5 <command>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment