Newsgroups: news.software.b
Path: utzoo!sq!msb
From: msb@sq.sq.com (Mark Brader)
Subject: Re: C News sendbatches problem
Message-ID: <1990Mar2.065756.18399@sq.sq.com>
Reply-To: msb@sq.com (Mark Brader)
Organization: SoftQuad Inc., Toronto
References: <_+2#P#G@b-tech.uucp> <1990Mar1.181514.523@utzoo.uucp>
Date: Fri, 2 Mar 90 06:57:56 GMT

> > I recently had a site that I feed go down for awhile... sendbatches creates
> > empty batches when you ask it to spool up news that has expired and then
> > counts these empty batches in its calculations about how much news is
> > spooled...

> Fiddling with queuelen (or just cranking up that site's queue limit
> temporarily) is a reasonable temporary workaround for severe problems.

Another reasonable workaround, and one that you don't have to change
back afterwards, is to have a shell script along the following lines
at hand, and run it when the need is noticed:

	:
	cd /usr/spool/news/out.going
	for togo in */togo*
	do
		while read file size
		do
			test -f $file && echo $file $size
		done <$togo >tmp$$
		mv tmp$$ $togo
	done

(The above is not tested, but can't be seriously wrong, right?)
It won't be blindingly fast, but then, how often will you need to run it?
The nice part is that you don't have to remember to change anything back
when you're done with it -- just don't run it simultaneously with
sendbatches.

-- 
Mark Brader			"Bad news disturbs his game; so does good;
SoftQuad Inc., Toronto		 so also does the absence of news."
utzoo!sq!msb, msb@sq.com				-- Stephen Leacock

This article is in the public domain.
