Article View: news.software.nntp
Article #18599Re: Identifying stale news groups?
From: Net Scum
Date: Mon, 23 Jun 1997 00:00
Date: Mon, 23 Jun 1997 00:00
31 lines
1760 bytes
1760 bytes
On Mon, 23 Jun 1997, Brian Murrell wrote:
> Anybody got any good tools for identifying a stale news group? I want
> to make the size of my spool smaller (i.e. less directories for innd to
> search through) by nuking any stale newsgroups.
Here's what I did...
- Sort your active file in reverse order.
- convert group names to paths.
- do a rmdir -p on each directory.
If the directory is not empty (group is active, for certain definitions of
active), rmdir will fail. The -p flag will remove as many parent
directories as possible. Doing it in reverse means you'll try to zap
alt.dinosaur.barney.die.die.die before trying to zap alt.dinosaur.barney,
thus clearing any subdirectories first.
This went pretty fast. You'll miss any groups no longer in your active
file (perhaps makeactive could help here), but I watched as a good number
of directories were nuked pretty quickly.
I'm sure Joe G will pipe in with some useful tool, but I just wanted
something quick and simple.
Barry Bouwsma, ye ole News Bully
http://www.netscum.net/bouwsmb0.html
Technical Details
Message-ID:
<Pine.LNX.3.96.970623215015.27718H-100000@marley.vszbr.cz>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:
<33AEC260.292@bctel.net>Show Full Headers
Complete Article Headers
Message-ID: <Pine.LNX.3.96.970623215015.27718H-100000@marley.vszbr.cz> Subject: Re: Identifying stale news groups? Date: Mon, 23 Jun 1997 00:00:00 +0000 From: Net Scum <barry@bofh-cabal.vszbr.cz> References: <33AEC260.292@bctel.net> 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: 252094185 X-Sender: barry@marley.vszbr.cz Organization: Volunteer Usenet Administrators Ltd. Reply-To: ag786@yfn.ysu.edu Newsgroups: news.software.nntp NNTP-Posting-User: barry