-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcron.jobs
18 lines (18 loc) · 1.01 KB
/
cron.jobs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# In case of 'Operation not permitted' error on macOS, enable 'Full Disk Access'
# for iTerm in 'Security & Privacy' -> 'Privacy'
# * * * * * command to execute
# │ │ │ │ │ day of week (0 - 6) (0 to 6 are Sunday to Saturday,
# │ │ │ │ └───────────── or use names; 7 is Sunday, the same as 0)
# │ │ │ └─────────────── month (1 - 12)
# │ │ └───────────────── day of month (1 - 31)
# │ └─────────────────── hour (0 - 23)
# └───────────────────── min (0 - 59)
#
# Update everything daily at 16:00
SHELL=/bin/bash
0 16 * * * source ~/.bashrc && source ~/.aliases && update_all
# Save stats about current connection speed
SHELL=/bin/bash
51 22 * * * source ~/.bashrc && source ~/.aliases && ~/scripts/wifi_speed_test.sh > ~/speed_test.txt
# Backup crontab at 16:00
0 16 * * * crontab -l > ~/dotfiles/cron.jobs