1
- # whats in the real crontab and this file are technically two diff things
2
- # for now we just manually make sure this matches whats in `crontab -e`
1
+ # whats in the real crontab and this file are technically two diff things. for now we just manually make sure this matches whats in there.
3
2
# todo: implement something like this? https://blog.chmd.fr/saving-your-crontab-in-your-dotfiles.html
4
3
#
5
4
# to edit real crontab:
6
5
# env EDITOR=nano crontab -e
7
6
#
8
- # make sure all scripts are executable.
9
- # chmod +x *.sh
7
+ # make sure all scripts are executable: chmod +x *.sh
10
8
11
9
# =====================================================================#
12
10
# 0-23 0-59 0-30 0-6 1-12 #
22
20
# =====================================================================#
23
21
# Min | Hour | Mday | Month | Wday | Command #
24
22
# =====================================================================#
25
- */7 * * * * $HOME/code/dotfiles/cron/every-five-minutes.sh > /dev/null 2>&1
26
- 15 * * * * $HOME/code/dotfiles/cron/every-hour.sh > /dev/null 2>&1
27
- 0 3 * * * $HOME/code/dotfiles/cron/daily-nighttime.sh
28
- 20 17,18 * * 6 $HOME/code/dotfiles/cron/weekly.sh
23
+
24
+ */20 * * * * $HOME/code/dotfiles/cron/every-five-minutes.sh > /dev/null 2>&1
25
+ 15 * * * * $HOME/code/dotfiles/cron/every-hour.sh > /dev/null 2>&1
26
+ # 0 3 * * * $HOME/code/dotfiles/cron/daily-nighttime.sh
27
+ 20 17,18 * * 5 $HOME/code/dotfiles/cron/weekly.sh
28
+ 35 16 * * MON-FRI $HOME/code/dotfiles/cron/workday-end.sh
29
+
30
+ # https://stackoverflow.com/questions/2135478/how-to-simulate-the-environment-cron-executes-a-script-with
31
+ # * * * * * env > ~/cronenv
32
+
29
33
# =====================================================================#
30
34
31
- 5 17 * * MON-FRI $HOME/code/dotfiles/cron/workday-end.sh
32
-
33
35
34
36
# disabled for now
35
37
# 20 17,18 * * 1-5 $HOME/code/dotfiles/cron/twice-during-weekdays.sh
36
- # */15 * * * * $HOME/bin/temp-help.sh
38
+ # */15 * * * * $HOME/bin/temp-help.sh
0 commit comments