File: crontab.in

package info (click to toggle)
flowscan 1.006-13
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 728 kB
  • ctags: 185
  • sloc: sh: 1,670; perl: 1,518; makefile: 148
file content (13 lines) | stat: -rw-r--r-- 768 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
# { FlowScan stuff:
#
# make the graphs:
0,5,10,15,20,25,30,35,40,45,50,55 * * * * test -f @prefix@/graphs/Makefile && cd @prefix@/graphs && make -s >/dev/null 2>&1
#
# gzip the saved flow files:
2,7,12,17,22,27,32,37,42,47,52,57 * * * * test -d @prefix@/saved && cd @prefix@/saved && @prefix@/bin/locker -ne .gzip_lock "@KSH_PATH@ -c '@LS_PATH@ flows.[0-9]!(*.gz) 2>/dev/null | @XARGS_PATH@ -n1 @GZIP_PATH@'"
#
# Purge the flow files:
# find(1) -mtime +1 was insufficient - I want to delete them as soon as they're
# `n' hours old:
0 * * * * @FIND_PATH@ @prefix@/saved -type f -name 'flows.*' -print |@PERL_PATH@ -e '$now = time; $seconds = 28*60*60; while (<>) { chomp; (@_ = stat $_) && ($now - $_[9] > $seconds) && print $_, "\n" }' |@XARGS_PATH@ @RM_PATH@ -f
# }