Article View: news.software.nntp
Article #6141Re: Infelicity of "sort -o" in news.daily
From: Jerry Aguirre
Date: Sat, 30 Mar 1996 00:00
Date: Sat, 30 Mar 1996 00:00
33 lines
2044 bytes
2044 bytes
In article <4jc4vt$kls@euas20.eua.ericsson.se> per@erix.ericsson.se (Per Hedeland) writes:
>In article <4j6s4u$iae@halon.vggas.com> JYoungman@vggas.com (James Youngman) writes:
>> Alternatively, we could use sort ${RMFILE} | fastrm .... to avoid
>>the problem altogether.
>
>Sorry, won't help - even though it is used as a filter, it doesn't walk
>like one.:-) Sort by definition has to read the entire input file before
But news.daily could do something like:
sort -u -o ${RMFILE} ${RMFILE} && ln ${RMFILE} ${XOFILE}
And then later use a test of the existance of ${XOFILE} (expire.xo)
to decide whether to run expireover -z or expireover -s.
If the sort fails and there is no space then there is not much you can
do about fastrm. It is going to be slower but you still need to get
rid of the files.
But running expireover -z on an unsorted list is a real killer. It
is much more efficient at that point to run expireover -s. Yes it
scans the spool but at least it updates each .overview file only
once istead of thousands of times.
I don't even run expireover from news.daily any more. Instead I run
a separate post news.daily script that runs it. It does a "sort -c"
of the expire.list file and then runs expireover -z or expireover -s
based on the result.
By moving expireover out of news.daily I allow it to finish its work
more quickly and minimize the time innwatch is locked out.
Technical Details
Message-ID:
<4ji01i$chc@olivea.ATC.Olivetti.Com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<4j6s4u$iae@halon.vggas.com> <4jc4vt$kls@euas20.eua.ericsson.se>Show Full Headers
Complete Article Headers
Message-ID: <4ji01i$chc@olivea.ATC.Olivetti.Com> Subject: Re: Infelicity of "sort -o" in news.daily Date: Sat, 30 Mar 1996 00:00:00 +0000 From: jerry@strobe.ATC.Olivetti.Com (Jerry Aguirre) References: <4j6s4u$iae@halon.vggas.com> <4jc4vt$kls@euas20.eua.ericsson.se> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 144927290 Organization: Olivetti ATC; Cupertino, CA; USA Newsgroups: news.software.nntp