Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!mcvax!enea!sal!jf From: jf@sal.UUCP (Johan Finnved) Newsgroups: net.news.adm,net.news.b Subject: Re: great glacier news flood problem solved Message-ID: <593@sal.UUCP> Date: Fri, 11-Apr-86 09:39:34 EST Article-I.D.: sal.593 Posted: Fri Apr 11 09:39:34 1986 Date-Received: Wed, 16-Apr-86 03:34:05 EST References: <5819@glacier.ARPA> <1786@seismo.CSS.GOV> Reply-To: jf@sal.UUCP (Johan Finnved) Organization: Objecta, Taby, Sweden Lines: 29 Xref: watmath net.news.adm:589 net.news.b:1363 Summary: Yet another way to avoid extra execs There is already a shell script that gets executed for each incoming news batch (if your neighbours use compressed batches): cunbatch. So by just modifying this file you can get all the desired effects without any change in the binary directories. On sal I even put the commands to enable/disable unbatching in the same script just to have it all in one place. --------------------------------begin cunbatch-------------------------------- cd /usr/spool/news/delayed.news case x$1 in x-e) rm -f cunbatch.stop for i in B*.* do if test -f cunbatch.stop -o ! -f $i ; then exit 0 ; fi nice /usr/lib/news/compress -d <$i | nice /usr/bin/rnews \ && rm -f $i done ;; x-d) touch cunbatch.stop ;; *) if test -f cunbatch.stop ; then set `date` exec /bin/cat > B$$.$3$4 else exec nice /usr/lib/news/compress -d | nice /usr/bin/rnews fi ;; esac --------------------------------end cunbatch--------------------------------