Thread View: news.software.nntp
10 messages
10 total messages
Started by Nigel Reed
Tue, 29 Mar 2022 18:31
Getting a list of groups + number of articles
Author: Nigel Reed
Date: Tue, 29 Mar 2022 18:31
Date: Tue, 29 Mar 2022 18:31
16 lines
1194 bytes
1194 bytes
Hi all, Is there any command that'll list the newsgroups and number of articles in each group? I'm looking for active groups I want to expose to my BBS. Some I know are active, others, not so sure. Sort go going through the spool and counting them using a script, I wonder if a command already exists? Thanks, Nigel -- End Of The Line BBS - Plano, TX telnet endofthelinebbs.com 23
Re: Getting a list of groups + number of articles
Author: Aioe
Date: Tue, 29 Mar 2022 20:33
Date: Tue, 29 Mar 2022 20:33
18 lines
1481 bytes
1481 bytes
Il 29/03/22 20:31, Nigel Reed ha scritto: > Hi all, > > Is there any command that'll list the newsgroups and number of articles > in each group? LIST COUNTS does this: $ telnet nntp.aioe.org nntp Trying 46.165.242.75... Connected to nntp.aioe.org. Escape character is '^]'. 200 nntp.aioe.org InterNetNews NNRP server INN 2.6.1 ready (posting ok) LIST COUNTS aioe.news.* 215 Newsgroups in form "group high low count status" aioe.news.assistenza 8180 657 6601 y aioe.news.helpdesk 7156 5591 1557 y aioe.news.nocem 15139 10 15130 y
Re: Getting a list of groups + number of articles
Author: Nigel Reed
Date: Wed, 30 Mar 2022 05:21
Date: Wed, 30 Mar 2022 05:21
17 lines
1299 bytes
1299 bytes
On Tue, 29 Mar 2022 22:33:43 +0200 Aioe <estasi@aioe.org> wrote: > Il 29/03/22 20:31, Nigel Reed ha scritto: > > Hi all, > > > > Is there any command that'll list the newsgroups and number of > > articles in each group? > > LIST COUNTS does this: I was thinking more like something I can run from a linux command line. -- End Of The Line BBS - Plano, TX telnet endofthelinebbs.com 23
Re: Getting a list of groups + number of articles
Author: Grant Taylor
Date: Wed, 30 Mar 2022 06:06
Date: Wed, 30 Mar 2022 06:06
12 lines
1462 bytes
1462 bytes
On 3/29/22 11:21 PM, Nigel Reed wrote: > I was thinking more like something I can run from a linux command line. If you have command line access to a news server that's using traditional spool, you can probably work some find / ls / etc magic to get what you want. -- Grant. . . . unix || die
Re: Getting a list of groups + number of articles
Author: Todd M. McComb
Date: Wed, 30 Mar 2022 07:12
Date: Wed, 30 Mar 2022 07:12
8 lines
1256 bytes
1256 bytes
In article <t20s08$vqs$1@tncsrv09.home.tnetconsulting.net>, Grant Taylor <gtaylor@tnetconsulting.net> wrote: >If you have command line access to a news server that's using >traditional spool, you can probably work some find / ls / etc magic to >get what you want. This information is in /usr/lib/news/active Subtract for a count.
Re: Getting a list of groups + number of articles
Author: Julien ÉLIE
Date: Wed, 30 Mar 2022 20:49
Date: Wed, 30 Mar 2022 20:49
33 lines
2084 bytes
2084 bytes
Hi Nigel,
>>> Is there any command that'll list the newsgroups and number of
>>> articles in each group?
>>
>> LIST COUNTS does this:
>
> I was thinking more like something I can run from a linux command line.
Assuming INN is installed (it provides the getlist tool):
% getlist -h nntp.aioe.org counts 'aioe*' | awk '{ print $1, $4 }'
aioe.it.discussioni 148
aioe.news.assistenza 6601
aioe.news.helpdesk 1557
aioe.system 80
aioe.test 1630
aioe.test.tor 37
aioe.news.nocem 15130
aioe.test.moderated 7
aioe.helpdesk 259
or:
% getlist counts | awk '{ print $1, $4 }'
for your local news server.
--
Julien ÉLIE
« L'éternité, c'est long, surtout vers la fin. » (Woody Allen)
Re: Getting a list of groups + number of articles
Author: yamo'
Date: Thu, 07 Apr 2022 09:24
Date: Thu, 07 Apr 2022 09:24
21 lines
1718 bytes
1718 bytes
Hi Julien,
Julien ÉLIE a tapoté le 30/03/2022 22:49:
> % getlist counts | awk '{ print $1, $4 }'
>
> for your local news server.
>
On INN 2.6.4 :
"getlist" works but "getlist counts" always give this error :
getlist: unexpected server response: 501 Unknown LIST keyword
There must a configuration for counts... The local (without -h) answer
may said what to do.
Best regards,
--
Stéphane
Re: Getting a list of groups + number of articles
Author: Julien ÉLIE
Date: Thu, 07 Apr 2022 09:47
Date: Thu, 07 Apr 2022 09:47
24 lines
1982 bytes
1982 bytes
Bonjour Stéphane,
>> % getlist counts | awk '{ print $1, $4 }'
>>
>> for your local news server.
>
> On INN 2.6.4 :
>
> "getlist" works but "getlist counts" always give this error :
>
> getlist: unexpected server response: 501 Unknown LIST keyword
>
> There must a configuration for counts... The local (without -h) answer
> may said what to do.
Could you please try "getlist -R counts"?
This way, getlist will send a "MODE READER" command before sending its
request.
--
Julien ÉLIE
« Roma tibi subito motibus ibit amor. »
Re: Getting a list of groups + number of articles
Author: Julien ÉLIE
Date: Thu, 07 Apr 2022 11:20
Date: Thu, 07 Apr 2022 11:20
25 lines
2178 bytes
2178 bytes
Bonjour Stéphane, > "getlist" works but "getlist counts" always give this error : > > getlist: unexpected server response: 501 Unknown LIST keyword I've improved the response innd gives, so that there is a hint about what to do: % getlist counts getlist: unexpected server response: 401 MODE-READER Of course, if the keyword is unknown or if the server won't allow to switch to reader mode, the previous answer will still be given: % getlist unknownarg getlist: unexpected server response: 501 Unknown LIST keyword -- Julien ÉLIE « Le dieu, dont l'oracle est à Delphes, ne parle pas, ne dissimule pas : il indique. » (Héraclite d'Éphèse, fragment 93, traduction de Jean Voilquin)
Re: Getting a list of groups + number of articles
Author: yamo'
Date: Thu, 07 Apr 2022 11:32
Date: Thu, 07 Apr 2022 11:32
9 lines
1486 bytes
1486 bytes
Hi, Julien ÉLIE a tapoté le 07/04/2022 11:47: > getlist -R counts It works :) Thanks a lot! -- Stéphane
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