Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!bsu-cs!dhesi From: dhesi@bsu-cs.UUCP (Rahul Dhesi) Newsgroups: news.admin Subject: Re: considerbatch - news batching disk space limiter Message-ID: <5520@bsu-cs.UUCP> Date: 31 Jan 89 16:55:48 GMT References: <3360@sugar.uu.net> Reply-To: dhesi@bsu-cs.UUCP (Rahul Dhesi) Organization: CS Dept, Ball St U, Muncie, Indiana Lines: 30 In article <3360@sugar.uu.net> karl@sugar.uu.net (Karl Lehenbauer) writes: >Considerbatch simply refuses to run sendbatch on batched-but-not-queued >articles if the amount of stuff already queued for the site exeeds a limit... That was for HDB. Here's my code for sendbatch under 4.3BSD. At the beginning of sendbatch define MAXPENDING to be the limit of the number of bytes of pending output per site. Modify code near the end of sendbatch as follows: if test -n "$DOIHAVE" -a -s /usr/spool/batch/$rmt.ihave then ... something ... else pending=`uuq -l | fgrep ${rmt}: | awk '{print $4}'` if test "$pending" -gt $MAXPENDING then echo "sendbatch exiting -- too much uucp pending for $rmt" exit 1 fi (eval $ECHO; eval $CMD $COMP $C7) | if test -s /usr/spool/batch/$rmt.cmd then /usr/spool/batch/$rmt.cmd else uux - -r -z -n -gd $rmt!$RNEWS fi fi -- Rahul Dhesi UUCP: !{iuvax,pur-ee}!bsu-cs!dhesi ARPA: bsu-cs!dhesi@iuvax.cs.indiana.edu