> #!/bin/sh
> set -e
> . /etc/sysconfig/dnscap
> 
> cd `dirname ${DNSCAP_BASEPATH}`
> while sleep 1 ; do
>       GB_FREE=`df -B 1G . | awk 'NR==2 {print $4}'`
>       echo $GB_FREE GB free | logger
>       test $GB_FREE -gt ${DNSCAP_FREE_GB} && break;
>       ls -rt | grep '^dnscap\.' | head -n 1 | xargs rm -v 2>&1 | logger
> done

ok.  cute.  but i really only use dnscap to report yesterday's
activity.  i am not a dns geek doing longitudinal analysis.  so i think
i just save the most recent .part file, yes?

randy
_______________________________________________
dns-operations mailing list
[email protected]
https://lists.dns-oarc.net/mailman/listinfo/dns-operations
dns-jobs mailing list
https://lists.dns-oarc.net/mailman/listinfo/dns-jobs

Reply via email to