-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrontab
34 lines (26 loc) · 1.08 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
30
31
32
33
34
# SHELL=/bin/bash
# PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
# For details see man 5 crontab
# Symbol | Description
# * | Wildcard, specifies every possible time interval
# , | List multiple values separated by a comma.
# - | Specify a range between two numbers, separated by a hyphen
# / | Specify a periodicity/frequency using a slash
# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * user-name command to be executed
# Load crontab with command `crontab ~/path/to/crontab`
# Check battery level every 5 minutes
*/5 * * * * $HOME/bin/battery
# Sync contacts every 5 minutes
*/5 * * * * vdirsyncer sync
# Sync email every minute
* * * * * chronic mbsync -c $HOME/.config/isync/mbsyncrc -a
# Sync notes (zk) every 15 minutes
*/15 * * * * /usr/bin/zk sync