/usr/sbin/uupoll is in uucp 1.07-24.
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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | #! /bin/sh
#
# uupoll Poll a system manually like uudemon.hr would
# do when the system is scheduled. This script
# assumes Taylor UUCP and Taylor style Log files.
#
# Version: @(#)uupoll 2.30 05-May-1997
#
# Debug level for uucico
DEBUG=
# Direct uuxqt and the like?
NOUUXQT=0
# Constants.
UUCP="/usr/lib/uucp" # name of the UUCP bin directory
CONF="/etc/uucp" # name of the UUCP conf directory
NEWS="/usr/lib/news" # name of the news bin directory
LOGDIR="/var/log/uucp" # name of the UUCP spool directory
BATCH1="$NEWS/bin/send-uucp.pl" # path to the news batcher (INN + Perl)
BATCH2="$NEWS/bin/send-uucp" # path to the news batcher (INN)
BATCH3="$NEWS/sendbatch" # path to the news batcher (Wnews/Bnews)
# Check arguments.
while [ "$STOP" != 1 ]
do
case "$1" in
-x*)
DEBUG=$1
shift
;;
-n)
NOUUXQT=1
shift
;;
-*)
echo "Usage: uupoll [-n] [-xNUM] <system>"
exit 1
;;
*)
if [ $# != 1 ]
then
echo "Usage: uupoll [-n] [-xNUM] <system>"
exit 1
fi
STOP=1
;;
esac
done
# Do we know this system?
uuname -a | grep "$1" > /dev/null
if [ $? != 0 ]
then
echo "uupoll: system <$1> unknown."
exit 1
fi
PATH="/bin:/sbin:/usr/bin:/usr/sbin:$UUCP"
# Batch news for this system
ME=`whoami`
if [ $NOUUXQT = 0 ] && ([ $ME = news ] || [ $ME = root ])
then
for i in $BATCH1 $BATCH2 $BATCH3
do
if [ -f $i ]
then
echo "Batching news, please wait..."
$i $1
break
fi
done
fi
# Fire up uucico, but first show the log output.
tail -n 0 -f $LOGDIR/Log &
uucico $DEBUG -q -D -S$1
# Do we want to run uuxqt and news unbatching etc?
if [ $NOUUXQT = 1 ]
then
# Kill log watch process and exit.
kill -9 $!
exit 0
fi
# Run uuxqt, which may not have been run by uucico.
uuxqt $DEBUG
# Kill the log watch process.
kill -9 $!
exit 0
# End of uupoll.
|