Thread View: news.software.nntp
5 messages
5 total messages
Started by D. Stussy
Sun, 11 Oct 2009 21:30
INN 2.5.0 docheckgroups
Author: D. Stussy
Date: Sun, 11 Oct 2009 21:30
Date: Sun, 11 Oct 2009 21:30
10 lines
1341 bytes
1341 bytes
Would it be possible to change line 83 of " /docheckgroups.in" from
${SORT} ${T}/$$updatednewsgroups | ...
to
${SORT} -u ${T}/$$updatednewsgroups | ...
just in case there are other [non-identical] duplicated lines in the output
newsgroups descriptions file?
Re: INN 2.5.0 docheckgroups
Author: Russ Allbery
Date: Mon, 12 Oct 2009 00:18
Date: Mon, 12 Oct 2009 00:18
19 lines
1705 bytes
1705 bytes
"D. Stussy" <spam+newsgroups@bde-arc.ampr.org> writes:
> Would it be possible to change line 83 of " /docheckgroups.in" from
> ${SORT} ${T}/$$updatednewsgroups | ...
> to
> ${SORT} -u ${T}/$$updatednewsgroups | ...
> just in case there are other [non-identical] duplicated lines in the output
> newsgroups descriptions file?
It would need to instead be a pipe through uniq, since -u isn't portable.
What do you mean by non-identical duplicated lines?
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INN 2.5.0 docheckgroups
Author: D. Stussy
Date: Mon, 12 Oct 2009 02:49
Date: Mon, 12 Oct 2009 02:49
47 lines
2685 bytes
2685 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message
news:87ocodfosg.fsf@windlord.stanford.edu...
> "D. Stussy" <spam+newsgroups@bde-arc.ampr.org> writes:
>
> > Would it be possible to change line 83 of " /docheckgroups.in" from
>
> > ${SORT} ${T}/$$updatednewsgroups | ...
> > to
> > ${SORT} -u ${T}/$$updatednewsgroups | ...
>
> > just in case there are other [non-identical] duplicated lines in the
output
> > newsgroups descriptions file?
>
> It would need to instead be a pipe through uniq, since -u isn't portable.
-u is used elsewhere in the script (line 42), so nonportability is already
there.
> What do you mean by non-identical duplicated lines?
Scratch the idea; it's not really necessary. I was getting strange things
but I
figured out it was something I had done.
However, there's something else I was playing with:
Insert at line 82:
DATE=`date --utc "+%Y-%m-%d %H:%M:%S UTC"`
for x in `grep "\." ${T}/$$msg|cut -d . -f 1|sort -u` ; do
echo -e $x.CHECKGROUPS\\tCheckgroups processed on $DATE
>>${T}/$$updatednewsgroups ; done
This adds a pseudo-entry into the descriptions list of when a [valid]
checkgroups
message was last received. Some might think it useful. As it's not going
to be in
a typical checkgroups message, it gets removed (and replaced) when the next
checkgroups message comes in.
PS: In recent testing, I noted that a recent "cl.*" hierarchy checkgroups
message
wasn't processing, but it looks as if that message is malformed as it wraps
one of
the description lines.
Re: INN 2.5.0 docheckgroups
Author: Julien ÉLIE
Date: Mon, 12 Oct 2009 17:24
Date: Mon, 12 Oct 2009 17:24
15 lines
1709 bytes
1709 bytes
Hi Russ,
>> ${SORT} -u ${T}/$$updatednewsgroups | ...
>
> It would need to instead be a pipe through uniq, since -u isn't portable.
As libtool is currently using "sort -u", we said it would be harmless
to use it as well:
https://lists.isc.org/mailman/htdig/inn-workers/2009-April/016721.html
--
Julien ÉLIE
« Nam et ipsa scientia potestas est. » (Francis Bacon)
Re: INN 2.5.0 docheckgroups
Author: Russ Allbery
Date: Mon, 12 Oct 2009 17:31
Date: Mon, 12 Oct 2009 17:31
19 lines
1776 bytes
1776 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> Hi Russ,
>>> ${SORT} -u ${T}/$$updatednewsgroups | ...
>>
>> It would need to instead be a pipe through uniq, since -u isn't portable.
> As libtool is currently using "sort -u", we said it would be harmless
> to use it as well:
> https://lists.isc.org/mailman/htdig/inn-workers/2009-April/016721.html
Ack, yes, I completely forgot about that. Sorry.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads