crontab -e:
Code: Select all
58 * * * * /root/ipac-ng > /dev/nullCode: Select all
#!/bin/sh
if ! test -f /proc/net/ip_tables_names; then exit 1; fi
if ! test -f /etc/ipac-ng/ipac.conf; then exit 1; fi
if ! test -f /usr/sbin/fetchipac; then exit 1; fi
if ! test -d /var/lib/ipac/; then exit 1; fi
/usr/bin/nice /usr/sbin/ipacsum --replace --timeframe "yesterday" > /dev/null
/usr/bin/nice /usr/sbin/ipacsum --timeframe "this month"
--png /var/wwws/iam/static --png-index --png-totalCode: Select all
1-59/5 * * * * root test -f /proc/net/ip_tables_names && test -f /etc/ipac-ng/ipac.conf && test -f /usr/sbin/fetchipac && test -d /var/lib/ipac/ && /usr/bin/nice /usr/sbin/fetchipacCode: Select all
#!/bin/sh
if ! test -f /proc/net/ip_tables_names; then exit 1; fi
if ! test -f /etc/ipac-ng/ipac.conf; then exit 1; fi
if ! test -f /usr/sbin/fetchipac; then exit 1; fi
if ! test -d /var/lib/ipac/; then exit 1; fi
/bin/mkdir /var/wwws/iam/static/archiv/`date -d month+ago +%B-%Y`
/usr/bin/nice /usr/sbin/ipacsum --replace --timeframe "last month"
--png /var/wwws/iam/static/archiv/`date -d month+ago +%B-%Y`
--png-index --png-total
| mail -s "monthly trafficreport in bytes from `date -d month+ago +%B-%Y`" em@ilÃ?ber Tips und Hinweise freue ich mich. Danke.ipacsum: fetchipac reported error on replace operation