• Getting a list of groups + number of articles

    From Nigel Reed@21:1/5 to All on Tue Mar 29 13:31:07 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Aioe@21:1/5 to All on Tue Mar 29 22:33:43 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Grant Taylor@21:1/5 to Nigel Reed on Wed Mar 30 00:06:29 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nigel Reed@21:1/5 to Aioe on Wed Mar 30 00:21:50 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Todd M. McComb@21:1/5 to gtaylor@tnetconsulting.net on Wed Mar 30 07:12:01 2022
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Julien_=c3=89LIE?=@21:1/5 to All on Wed Mar 30 22:49:06 2022
    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)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From yamo'@21:1/5 to All on Thu Apr 7 11:24:08 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Julien_=c3=89LIE?=@21:1/5 to All on Thu Apr 7 11:47:05 2022
    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. »

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Julien_=c3=89LIE?=@21:1/5 to All on Thu Apr 7 13:20:12 2022
    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)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From yamo'@21:1/5 to All on Thu Apr 7 13:32:15 2022
    Hi,
    Julien ÉLIE a tapoté le 07/04/2022 11:47:
    getlist -R counts

    It works :)

    Thanks a lot!
    --
    Stéphane

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)