|
|
DataMuseum.dkPresents historical artifacts from the history of: Regnecentalen RC-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Regnecentalen RC-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T U u
Length: 914 (0x392)
Types: TextFile
Notes: UNIX file
Names: »uudemon.poll«
└─⟦07a570ed8⟧ Bits:30004042/network2.imd SW95705I 386/ix Multi-user Release 1.2
└─⟦07a570ed8⟧ UNIX Filesystem
└─⟦this⟧ »bn/new/usr/lib/uucp/uudemon.poll«
#! /bin/sh
#ident "@(#)uucp:uudemon.poll 2.2"
# This shell should be run out of crontab every hour,
# a little before uudemon.hour since this one
# does not start the scheduler.
PATH=/bin:/usr/bin:/etc:/usr/lib/uucp
SPOOL=/usr/spool/uucp
POLLFILE=/usr/lib/uucp/Poll
# POLLFILE is a list of "system <tab> hour1 hour2 hour3 ..." for polling
# For example
# raven 2 6 10
# without the # at the beginning. Lines starting with # are ignored.
# NOTE a tab must follow the machine name
umask 022
set +e
HOUR="`date '+%H'`"
# HOUR="`date | sed -e 's/:.*//' -e 's/^.*\(..\)$/\1/'"
HOUR=`expr $HOUR + 0`
cat $POLLFILE |
sed -n -e "/^[^#].*[ ]$HOUR[ ]/s/ .*//p" -e "/^[^#].*[ ]$HOUR\$/s/ .*//p" |
while read site
do
if test ! -d $SPOOL/$site
then
mkdir $SPOOL/$site
chown uucp $SPOOL/$site
fi
j=`expr $site : '\(.\{1,7\}\)'`
touch $SPOOL/$site/C.${j}n0000
chown uucp $SPOOL/$site/C.${j}n0000
done