home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OpenStep 4.2
/
Openstep-4.2-Intel-User.iso
/
NextLibrary
/
PrivateFrameworks
/
Uucp.framework
/
Versions
/
A
/
Resources
/
contrib
/
uudemon.shar
/
uudemon.poll
< prev
Wrap
Text File
|
1993-10-05
|
941b
|
38 lines
#!/bin/sh
#
# This is my impersonation of the HDB uudemon.poll script.
# Yes, I know, this is very clumsy and clunky... ahh well, I've always
# been better at C/pascal/etc than Shell programming... :(
# change LIBDIR to where UUCP library/conf. files are
# change SPOOLDIR to the UUCP spool directory. It must be HDB-ish.
LIBDIR=/usr/lib/uucp; export LIBDIR
SPOOLDIR=/usr/spool/uucp; export SPOOLDIR
### no changes needed past here ###
HOUR=`date +%H`; export HOUR
if [ -f ${LIBDIR}/Poll ]; then
for SYS in `uuname`
do
CHOICES="`grep "^$SYS[ ]" ${LIBDIR}/Poll | awk -F' ' \
'{ print $2 }'`"
DOIT="no"
for H in $CHOICES
do
if [ "$HOUR" = "$H" ]; then
DOIT="yes"
fi
done
if [ "$DOIT" = "yes" ]; then
if [ ! -d ${SPOOLDIR}/${SYS} ]; then
mkdir ${SPOOLDIR}/${SYS}
fi
chmod 755 ${SPOOLDIR}/${SYS}
touch ${SPOOLDIR}/${SYS}/C.${SYS}n0000
chmod 644 ${SPOOLDIR}/${SYS}/C.${SYS}n0000
fi
done
fi