news batching with file size limits

Mark Horton mark at cbosgd.UUCP
Tue Apr 10 12:59:25 AEST 1984


Here is another way to do it.  This fix is much simpler, although it
doesn't do as much as some of the other fixes.   The problem is that,
if you use =batch, and your neighbor goes down for a few days, you
can get one huge batch, taking hours to transmit, and when they come
back up, it will burp before it can finish one complete transmission.

The fix is to simply move the copy of the file names to a unique filename
each time uux is invoked by crontab.  The spool directories are rearranged
slightly to avoid recompiling uucp, which only permits transfers from
/usr/spool/batch.  So now the sys file F option appends to
/usr/spool/batchnews/sysname instead of /usr/spool/batch/sysname.
The sendbatchednews script moves it to /usr/spool/batch.  A one line
change is also needed to batch, which unstead of truncating the file
(close(creat)), unlinks it.

	Mark
: ' sendbatchednews : transmit news which has been batched'
F=/usr/spool/batchnews
S=/usr/spool/batch
cd $F
for sys in *
do
	mv $F/$sys $S/$sys.$$
	uux -z -gd -r -c $sys!rnews '<' =/usr/lib/news/batch_$S/$sys.$$
done
/usr/lib/uucp/uucico -r1 &



More information about the Comp.sources.unix mailing list