🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by Kinson Chan �� �e Sat, 21 Sep 1996 00:00
how to remove many groups once?
#11053
Author: Kinson Chan �� �e
Date: Sat, 21 Sep 1996 00:00
21 lines
824 bytes
Hi,

I remove the news groups by "ctlinnd rmgroup " once at a time. How can
I remove group with its sub-group in one command? Say:

    a.test
    a.annouce
    a.test2
     :
     :
     :

all the gorups under a.  

Pls mail to me.
Thanks a lot.

Kinson Chan

Re: how to remove many groups once?
#11312
Author: Matthew Darwin
Date: Wed, 02 Oct 1996 00:00
36 lines
1530 bytes
: : I remove the news groups by "ctlinnd rmgroup " once at a time. How can
: : I remove group with its sub-group in one command? Say:
: : 
: :     a.test
: :     a.annouce
: :     a.test2
: :      :
: :      :
: :      :
: Write a script which directly modifies the active file and cleans up the
: spool directory. Be sure to throttle innd before and do a reload
: afterwards.

This is what I use.  In this case pass 'a' on the command line to the
script.

#!/bin/sh
for FF in $@
do
  echo "--> $FF.*"
  for GG in `grep "^$FF\." ~news/active | cut -d\  -f1`
  do
     echo -n "$GG  "
     ~news/bin/ctlinnd rmgroup "$GG"
  done
  rm -rf /var/spool/news/$FF
done

-- 
--
Matthew Darwin                          Westend Family Cinema
ug940209@omega.scs.carleton.ca (home)   cinema@flora.ottawa.on.ca
darwin@loran.com (work)                 http://www.flora.ottawa.on.ca/cinema/

Re: how to remove many groups once?
#11353
Author: Martin G. Rathmayer
Date: Wed, 02 Oct 1996 00:00
35 lines
1588 bytes
Kinson  Chan  �� �e (kinson@resolink.com) wrote:
: Hi,
: 
: I remove the news groups by "ctlinnd rmgroup " once at a time. How can
: I remove group with its sub-group in one command? Say:
: 
:     a.test
:     a.annouce
:     a.test2
:      :
:      :
:      :
: 
: all the gorups under a.  
: 
: Pls mail to me.
: Thanks a lot.
: 
: Kinson Chan

Write a script which directly modifies the active file and cleans up the
spool directory. Be sure to throttle innd before and do a reload
afterwards.

MGR
-- 
MARTIN G. RATHMAYER                       Email: rathmayer@edvz.tuwien.ac.at
Member of Communications Group            Phone: (++43-1 58801-5834)
Computing Services                        FAX:   (++43-1 587 42 11)
Technical University of Vienna, Wiedner Hauptstr. 8-10, A-1040 Vienna / AUSTRIA
    PGP Public-Key: ftp://nic.tuwien.ac.at/netinfo/info/kom-pubring.pgp
    PGP Finger-Print: 91 8A 7F 2C 97 66 1A 4E 56 68 0F 57 FF 33 A9 A3 

Re: how to remove many groups once?
#11355
Author: Steinar Haug
Date: Thu, 03 Oct 1996 00:00
30 lines
1458 bytes
[Matthew Darwin]

|   : Write a script which directly modifies the active file and cleans up the
|   : spool directory. Be sure to throttle innd before and do a reload
|   : afterwards.
|   
|   This is what I use.  In this case pass 'a' on the command line to the
|   script.
|   
|   #!/bin/sh
|   for FF in $@
|   do
|     echo "--> $FF.*"
|     for GG in `grep "^$FF\." ~news/active | cut -d\  -f1`
|     do
|        echo -n "$GG  "
|        ~news/bin/ctlinnd rmgroup "$GG"
|     done
|     rm -rf /var/spool/news/$FF
|   done

I don't know if the bug still exists, but when I ran a reasonably big
site, this (multiple newgroup/rmgroup in quick sequence) was a sure way
to get the active file corrupted. Much better to pause innd and edit the
file directly.

Steinar Haug, Nethelp consulting, sthaug@nethelp.no

Re: how to remove many groups once?
#11411
Author: Robin Chen
Date: Fri, 04 Oct 1996 00:00
32 lines
1137 bytes
How about this:

	ctlinnd throttle "cleaning active"
	grep -v "^a." active >active.new
	mv active.new active
	ctlinnd reload active ""
	ctlinnd go "cleaning active"

Robin

Kinson  Chan  �� �e (kinson@resolink.com) wrote:
: Hi,
: 
: I remove the news groups by "ctlinnd rmgroup " once at a time. How can
: I remove group with its sub-group in one command? Say:
: 
:     a.test
:     a.annouce
:     a.test2
:      :
:      :
:      :
: 
: all the gorups under a.  
: 
: Pls mail to me.
: Thanks a lot.
: 
: Kinson Chan

Re: how to remove many groups once?
#11444
Author: Per Hedeland
Date: Sun, 06 Oct 1996 00:00
15 lines
962 bytes
[ Bogus Distribution: inet removed ]

In article <531kch$4c2@cancer.vividnet.com> robinche@mail.vividnet.com (Robin Chen) writes:
>How about this:
>
>	ctlinnd throttle "cleaning active"
>	grep -v "^a." active >active.new

Yeah, great way to get rid of the alt groups.:-) Try "^a\.".

--Per Hedeland
per@erix.ericsson.se

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