Debian Codegraph @

debian/hylafax-server.hylafax.cron.monthly

raw
1 #!/bin/sh
2
3 test -f /usr/sbin/xferfaxstats || exit 0
4
5 # Generate HylaFAX's monthly fax statistics
6
7 # Generate statistics for faxes during the past month. Two reports
8 # are generated - one ordered by the destination fax number, the
9 # other ordered by the sender.
10
11 # No fax received in last month
12 test -f /var/spool/hylafax/log/xferfaxlog || exit 0
13
14 /usr/sbin/xferfaxstats -dest -since `date +%D -d'-1 month'` 2>&1 | mail -s "Monthly fax stats - by destination" faxmaster
15
16 /usr/sbin/xferfaxstats -send -since `date +%D -d'-1 month'` 2>&1 | mail -s "Monthly fax stats - by sender" faxmaster
17
18 savelog -c 5 /var/spool/hylafax/log/xferfaxlog >/dev/null