-
Notifications
You must be signed in to change notification settings - Fork 0
/
crontab
34 lines (32 loc) · 1.54 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
#
# FILE DISCONTINUED HERE
# UPDATED VERSION AT
# https://gitlab.com/yeupou/calaboose.rawdog/raw/master/crontab
#
# | |
# \_V_//
# \/=|=\/
# [=v=]
# __\___/_____
# /..[ _____ ]
# /_ [ [ M /] ]
# /../.[ [ M /@] ]
# <-->[_[ [M /@/] ]
# /../ [.[ [ /@/ ] ]
# _________________]\ /__/ [_[ [/@/ C] ]
# <_________________>>0---] [=\ \@/ C / /
# ___ ___ ]/000o /__\ \ C / /
# \ / /....\ \_/ /
# ....\||/.... [___/=\___/
# . . . . [...] [...]
# . .. . [___/ \___]
# . 0 .. 0 . <---> <--->
# /\/\. . . ./\/\ [..] [..]
#
# Run every 9 minutes
*/9 * * * * rawdog export LC_ALL=fr_FR.UTF-8 && cd ~/ && /usr/bin/rawdog -d ~/ -u -w 2>> errors
# Make sure we have the latest feeds, imported from akregator
# if there is a klink/feeds.opml, compare it with the current one
30 * * * * root cd /home/rawdog && if [ -e /home/klink/feeds.opml ]; then if [ ! -e feeds.opml ] || [ "`diff /home/klink/feeds.opml feeds.opml`" != "" ]; then scripts/opml_to_rawdog.pl /home/klink/feeds.opml > feeds ; fi ; fi
# Once per week, clean up
10 2 * * 7 rawdog rm -f ~/errors && find ~/ -name "index-*.html" ! -newer ~/index.html | xargs rm