/usr/sbin/bihourly is in arpwatch 2.1a15-2+b1.
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 | #!/bin/sh
# @(#) $Header: bihourly,v 1.1 96/11/07 17:39:23 leres Exp $ (LBL)
#
# bihourly arpwatch job
#
# This script is based on the bihourly cron script from
# arpwatch-2.1a13 and modified by Craig Sanders <cas@taz.net.au>. It
# also contains all additional modifications previously shipped in
# debian/patches/05debian_fhs, debian/patches/22secure_tempfile, and
# debian/patches/31_bug321504_errs-bihourly.
PATH=$PATH:/usr/local/sbin
export PATH
#
cd /var/lib/arpwatch
#
list=`cat list`
cname=`cat cname`
errs=`tempfile -p arpbh -s .tmp`
#
alist=""
for r in $list; do \
arpfetch $r $cname > $r 2> $errs
if test -s $errs; then
echo "arpfetch $r failed:"
sed -e 's/^/ /' $errs
continue
fi
alist="$alist $r"
done
#
rm -f $errs
arpsnmp $alist
#
exit 0
|