Article View: news.software.nntp
Article #33795Re: need a script for pruning a new ACTIVE file
From: Mike O'Connor
Date: Mon, 14 Dec 1998 00:00
Date: Mon, 14 Dec 1998 00:00
32 lines
1885 bytes
1885 bytes
In article <01be26eb$905963e0$2b6e60cf@the-helm.pcscs.com>,
Charles Wilkins <chas@pcscs.com> wrote:
:Hi,
:I am using inn-1.7.2
:
:I am also using /usr/lib/news/bin getlist -h hostname > active to pull down
:a peer's active file.
:I want to prune all of the entries of this file down to this format:
:groupname 0000000000 0000000001 y
:
:Here is a script that I found that doesnt work for me. It is supposed to
:convert the contents of a file by the name of upstream.active into your
:starting active file. On my system it just empties the contents of the
:active file.
:
:cat upstream.active | awk 'amp;#123; printf("%s 0000000000 0000000001
:%s\n", $1 $4) amp;#125;' > active
:
:Any comments or suggestions would be greatly appreciated!
A starting active file shouldn't have all its groups unmoderated.
The awk script may take that into account -- seems like it'd be
easier to just "awk '{print $1 " 0000000000 0000000001 " $4}'".
But really you'll want to take a look at the actsync program, which
has all kinds of knobs and features to do much of what you want.
--
Michael J. O'Connor | WWW: http://dojo.mi.org/~mjo/ | Email: mjo@dojo.mi.org
InterNIC WHOIS: MJO | (has my PGP & Geek Code info) | Phone: +1 248-848-4481
Technical Details
Message-ID:
<981214041455.AA10104@dojo.mi.org>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:
<01be26eb$905963e0$2b6e60cf@the-helm.pcscs.com>Show Full Headers
Complete Article Headers
Message-ID: <981214041455.AA10104@dojo.mi.org> Subject: Re: need a script for pruning a new ACTIVE file Date: Mon, 14 Dec 1998 00:00:00 +0000 From: Mike O'Connor <mjo@dojo.mi.org> References: <01be26eb$905963e0$2b6e60cf@the-helm.pcscs.com> 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: 422012708 Organization: Cheesy Poofs for a Lamer Society Reply-To: Mike O'Connor <mjo@dojo.mi.org> Newsgroups: news.software.nntp