-
Notifications
You must be signed in to change notification settings - Fork 0
/
.crontab
29 lines (28 loc) · 2.05 KB
/
.crontab
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# src: https://github.com/paulirish/dotfiles/blob/master/crontab
#
# Usage:
# - crontab -e
# - crontab $HOME/.crontab (to notify cron of new changes)
# - chmod +x .cron/*.sh if new scripts were added
#=====================================================================#
# 0-23 0-59 0-30 0-6 1-12 #
# |_ _| _| _| _| #
# | | | | | * any #
# At HH:MM on day-of-month MD on WD in M - range #
# | | | | | , array #
# __|__| ______| | __| / step #
# | | __| ___|__| #
# _| |__ | __| |__ #
# | | | | | #
# | | | | | #
#=====================================================================#
# Min | Hour | Mday | Month | Wday | Command #
#=====================================================================#
0 3 * * * test -x $HOME/.cron/daily-nighttime.sh && $HOME/.cron/daily-nighttime.sh > /dev/null 2>&1
*/5 * * * * test -x $HOME/.cron/every-five-minutes.sh && $HOME/.cron/every-five-minutes.sh > /dev/null 2>&1
15 * * * * test -x $HOME/.cron/every-hour.sh && $HOME/.cron/every-hour.sh > /dev/null 2>&1
20 17,18 * * 1-5 test -x $HOME/.cron/twice-during-weekdays.sh && $HOME/.cron/twice-during-weekdays.sh > /dev/null 2>&1
0 0 * * 0 test -x $HOME/.cron/twice-a-week.sh && $HOME/.cron/twice-a-week.sh > /dev/null 2>&1
#=====================================================================#
# Upgrade vim pluggin once a week
0 0 * * 0 vim +PlugUpdate +qa > /dev/null 2&>1