🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #11312

Re: how to remove many groups once?

#11312
From: 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/

Technical Details
Message-ID: <52vc6v$5br@bear.fauna.ottawa.on.ca>
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
References: <3243a7ca.25759357@news.resolink.com> <52u0vr$n8q@news.tuwien.ac.at>

Show Full Headers
Complete Article Headers
Message-ID: <52vc6v$5br@bear.fauna.ottawa.on.ca>
Subject: Re: how to remove many groups once?
Date: Wed, 02 Oct 1996 00:00:00 +0000
From: matthew@fauna.ottawa.on.ca (Matthew Darwin)
References: <3243a7ca.25759357@news.resolink.com> <52u0vr$n8q@news.tuwien.ac.at>
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: 186854406
Distribution: inet
Organization: Davin Technical Services
Newsgroups: news.software.nntp