/usr/lib/news/bin/sendinpaths is in inn2 2.5.2+20110413-1build1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | #! /bin/bash
. /usr/lib/news/innshellvars
#
# Submit path statistics based on ninpaths
# $Id: sendinpaths.in 5854 2002-11-25 17:53:06Z rra $
# Assuming the ninpaths dump files are in ${MOST_LOGS}/path/inpaths.%d
cd ${MOST_LOGS}/path
ME=`${NEWSBIN}/innconfval pathhost`
report=30
keep=14
TMP=""
defaddr="pathsurvey@top1000.org top1000@anthologeek.net"
# Renice to give other processes priority, since this isn't too important.
renice 20 -p $$ > /dev/null
# Make report from (up to) $report days of dumps
LOGS=`find . -name 'inpaths.*' ! -size 0 -mtime -$report -print`
if [ -z "$LOGS" ] ; then
echo "No data has been collected this month!"
exit 1
fi
# for check dumps
for i in $LOGS
do
ninpaths -u $i -r $ME > /dev/null 2>&1
if test $? -eq 0; then :
TMP="$TMP -u $i"
fi
done
if [ "$1" = "-n" ] ; then
ninpaths $TMP -r $ME
else
ninpaths $TMP -r $ME |\
$MAILCMD -s "inpaths $ME" ${1:-$defaddr}
# remove dumps older than $keep days
find . -name 'inpaths.*' -mtime +$keep -exec rm '{}' \;
fi
exit 0
|