stephen@dcl-cs.UUCP (Stephen J. Muir) (08/05/85)
Some sites are saving filenames of articles sent by "/usr/lib/news/sendbatch". Unfortunately, all of the sites I've checked are doing it wrongly as they haven't allowed for news arriving at the same time as "sendbatch" is being executed. Here is a version which does. ----------------------------------- cut here ---------------------------------- #!/bin/sh echo 'Start of pack.out, part 01 of 01:' echo 'x - sendbatch' sed 's/^X//' > sendbatch << '/' X: use /bin/sh Xba=/usr/spool/news/batched Xfor rmt in $* Xdo X while test $? -eq 0 -a \( -s $ba/$rmt -o -s $ba/$rmt.work \) X do X if test -s $ba/$rmt -a ! -s $ba/$rmt.work X then X cat $ba/$rmt >> $ba/$rmt.log X date >> $ba/$rmt.log X fi X /usr/lib/news/batch $ba/$rmt 50000 | \ X if test -s $ba/$rmt.cmd X then X $ba/$rmt.cmd X else X uux - -r -z $rmt!rnews X fi X done Xdone / echo 'Part 01 of pack.out complete.' exit -- UUCP: ...!seismo!mcvax!ukc!dcl-cs!stephen DARPA: stephen%lancs.comp@ucl-cs | Post: University of Lancaster, JANET: stephen@uk.ac.lancs.comp | Department of Computing, Phone: +44 524 65201 Ext. 4599 | Bailrigg, Lancaster, UK. Project:Alvey ECLIPSE Distribution | LA1 4YR