Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site clyde.UUCP Path: utzoo!linus!security!genrad!decvax!harpo!floyd!clyde!lda From: lda@clyde.UUCP (Larry D. Auton) Newsgroups: net.news.adm Subject: Re: how batch & unbatch work Message-ID: <231@clyde.UUCP> Date: Wed, 2-Nov-83 19:42:37 EST Article-I.D.: clyde.231 Posted: Wed Nov 2 19:42:37 1983 Date-Received: Sun, 6-Nov-83 08:32:39 EST References: <224@clyde.UUCP> <671@ulysses.UUCP> Organization: Bell Labs Whippany NJ Lines: 30 Thanks for the critique, Steve. Your point is well taken. I have encountered the problem of batching very large files, too. I diddled up a shell that solved the problem pretty well. I have included it below. It breaks the batches into groups of twenty articles each. Batches of this size are usually quite manageable for uucp. This same technique is useful for sending a bunch of news to a new netnews site. This way the new site can get a load of old news from their feed in batches that are of resonable length. BATCHDIR=/usr/spool/batch cd $BATCHDIR for rmt in akgua burl floyd ihnp4 # sites that we feed news do batchfile=$BATCHDIR/$rmt if test -s $batchfile then rm -f x?? split -20 $batchfile >$batchfile for xfile in x?? do /usr/lib/news/batch $BATCHDIR/$xfile|uux - -r -go -z -n $rmt!rnews done fi done rm -f x?? /usr/lib/uucp/uucico -r1& -- Larry Auton WECo @ BTL WH 2C-123 (201)386-4272 ihnp4!clyde!lda