freenix stats with inn-cvs ... ?
Katsuhiro Kondou
kondou at nec.co.jp
Sat Jan 6 04:35:03 UTC 2001
In article <200101052315.PAA18564 at feed.textport.net>,
Rich Skrenta <skrenta at textport.net> wrote;
} > 4.5 Add a line to cron to flush the stats daily:
} >
} > 59 23 * * * /usr/local/news/bin/ctlinnd flush inpaths!
I'd say;
4.6 patch sendninpath for system which does not have '-not' nor
'-empty' in /usr/bin/find and '-r' in /usr/bin/xargs (e.g.
solaris2.6)
--- sendinpaths.orig Sat Jan 6 13:20:01 2001
+++ sendinpaths Sat Jan 6 13:19:47 2001
@@ -14,7 +14,7 @@
trap "rm -f $TMP; trap 0; exit" 0 1 2 15
# Make report from (up to) $report days of dumps
-find . -name 'inpaths.*' -not -empty -mtime -$report -print |\
+find . -name 'inpaths.*' ! -size 0 -mtime -$report -print |\
sed 's/^/-u /' > $TMP
if [ "$1" = "-n" ] ; then
@@ -23,7 +23,7 @@
ninpaths `cat $TMP` -r $ME |\
$MAILCMD -s "inpaths $ME" sw+top1000 at anthologeek.net
# remove dumps older than $keep days
- find . -name 'inpaths.*' -mtime +$keep -print | xargs -r rm
+ find . -name 'inpaths.*' -mtime +$keep -exec rm {} \;
fi
exit 0
--
Katsuhiro Kondou
More information about the inn-workers
mailing list