|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T n
Length: 1365 (0x555)
Types: TextFile
Names: »nntpsend.sh«
└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit
└─⟦cfd40dc56⟧ »EurOpenD3/news/nntp/nntp.1.5.8.tar.Z«
└─⟦2ec98eca6⟧
└─⟦this⟧ »xmit/nntpsend.sh«
└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit
└─⟦5cced586a⟧ »EurOpenD3/news/nntp/nntp.1.5.7.tar.Z«
└─⟦7340f105e⟧
└─⟦this⟧ »./xmit/nntpsend.sh«
#!/bin/sh
#
# What we have here is a csh script for sending netnews to NNTP sites.
#
batchdir=/usr/spool/news/batch
libdir=/usr/spool/news/lib
PATH=${libdir}:/usr/ucb:/usr/bin:/bin:${PATH}
export PATH
pname=`basename $0`
echo ${pname}: "[$$]" begin `date`
#
# Go to where the action is
#
cd $batchdir
umask 022
#
# For NNTP
#
# Here "foo", "bar", and "zot" are the Internet names of
# the machines to which to send. We make the supposition
# that the batch files will be a host's internet name.
# So, for example "nike"'s internet name is "ames-titan.arpa".
# Because of this, your sys file must have "ames-titan.arpa"
# as the batch file output for the machine "nike".
#
for host in ${remotes=$*}
do
lock=L.${host}
tmp=${host}.tmp
send=${host}.nntp
if shlock -p $$ -f ${lock} ; then
if test -e ${tmp} ; then
cat ${tmp} >> ${send}
rm ${tmp}
fi
# we let the tmp file cool off for a while if there's other work to do
# and we pick it up again during next iteration
if test -e ${host} ; then
if test -e ${send} ; then
mv ${host} ${tmp}
else
mv ${host} ${send}
fi
fi
if test -e ${send} ; then
echo ${pname}: "[$$]" begin ${host}
time nntpxmit ${host}:${send}
echo ${pname}: "[$$]" end ${host}
fi
rm -f ${lock}
else
echo ${pname}: "[$$]" ${host} locked by "[`cat ${lock}`]"
fi
done
echo ${pname}: "[$$]" end `date`