Path: utzoo!attcan!uunet!comtst!mdv From: mdv@comtst.UUCP (Mike Verstegen) Newsgroups: comp.unix.aux Subject: Re: Bug in Bnews sendbatch.sh with A/UX UUCP (and maybe other SysV UUCPs) Message-ID: <147@comtst.UUCP> Date: 22 Sep 90 11:23:19 GMT References: <10491@panix.UUCP> Reply-To: mdv@comtst.UUCP (Mike Verstegen) Organization: Domain Systems, Inc., West Palm Beach, FL Lines: 44 In article <10491@panix.UUCP> alexis@panix.UUCP (Alexis Rosen) writes: >Here's a Bnews bug, and one way to fix it. It's in version 2.11 (2.11.18?) >The sendbatch is marked as version 1.22, 10/29/89. > >The symptom: News postings never make it off your machine. > >There seems to be a small bug in sendbatch. It tries to figure out how much >space is being used by a particular UUCP partner's files, in order to prevent >overflowing the disk. It runs du on /usr/spool/uucp/{your uucp partner}. > [ stuff deleted ] > >Alexis Rosen >A/UX Victim (but lots happier since 2.0 came out) >{cmcl2,apple}!panix!alexis Quite coincidentally, we had the same problem here (System V on 3B2) and just before reading this article, I had fixed it here with a slightly different solution as shown by the following sendbatch fragment. : '@(#)sendbatch.sh 1.22 10/29/89' ..... if test -n "$MAXBATCH" -a -d /usr/spool/uucp/$rmt then du=`du "/usr/spool/uucp/$rmt" | sed 's/ .*/000/'` if test ! -z "$du" -a \( "$du" -gt $MAXBATCH \) then echo $rmt already has $du Kbytes queued continue fi else # Added MDV 9/22/90: du was not set and caused du=0 # error in expr below. fi ..... This seems to work here and does not require any manual intervention for the creation of any directory. Hope this helps. Mike -- Mike Verstegen Domain Systems, Inc Voice +1 407 686-7911 ..!uunet!comtst!mdv 5840 Corporate Way #100 Fax +1 407 478-2542 mdv@domain.com West Palm Beach, FL 33407