-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrontab
32 lines (31 loc) · 1.06 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
# File to be added to the system/user crontab (user crontab is better). To add
# it, just type the command:
#
# `crontab -e`
#
# and past the last line of this file. The default editor is vim (sorry,
# probably my fault) so if you don't how to use vim, and that's too bad for
# you, you'll want to type:
#
# `EDITOR=nano crontab -e`
#
# Then check that the cron deamon is running with:
#
# `systemctl status cron.service`
#
# If not, then start it with:
#
# `sudo systemctl start cron.service`
#
# You may want to adjust the path to the script below before adding it to the
# real crontab. Make sure to check if the `ts` utility is there. If not, just
# install the "moreutils" package.
#
# -- M.
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
*/2 11-14 * * 1-5 /home/pi/capture.sh "caps/canteen.jpg" | ts >> /home/pi/caps/canteen.log
# The script will run every 2 minutes, from 11H to 14H (don't know how to deal
# with recurrence and starts/ends with half hours) every month, every day of
# the month, from Monday to Friday.