Article View: news.software.nntp
Article #11355Re: how to remove many groups once?
From: Steinar Haug
Date: Thu, 03 Oct 1996 00:00
Date: Thu, 03 Oct 1996 00:00
30 lines
1458 bytes
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
Technical Details
Message-ID:
<52vplg$lok@verdi.nethelp.no>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-mailReferences:
<3243a7ca.25759357@news.resolink.com> <52u0vr$n8q@news.tuwien.ac.at>Show Full Headers
Complete Article Headers
Message-ID: <52vplg$lok@verdi.nethelp.no> Subject: Re: how to remove many groups once? Date: Thu, 03 Oct 1996 00:00:00 +0000 From: sthaug@nethelp.no (Steinar Haug) 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: 187488595 Distribution: inet Organization: Nethelp Consulting, Trondheim, Norway Newsgroups: news.software.nntp