🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #74422

Re: Cleaning active files

#74422
From: Tim Skirvin
Date: Mon, 23 Oct 2006 15:32
29 lines
2406 bytes
"2Rowdy" <Harry131313@gmail.com> writes:

>> http://www.xs4all.nl/~rvtol/perl/clean-active.pl
> As a work around I created a cronjob on the server with the line:
> /home/directories/clean-active.pl active.mess active.cleaned

> I ended up with a very big cron job logfile. So big that I couldn't 
> read it.
> I suspect the script has operated but instead of creating the file 
> <active.cleaned> it inserted the result into the cronlog.
> What did I do wrong?

        That's how it's supposed to work - the list of valid groups goes
to STDOUT (ie they're simply printed, in this case to your cronlog), and
the invalid ones are printed with an error message to STDERR.

        So, you'd normally use the script like this:

        perl clean-active.pl < active > active.new

        Or

        perl clean-active.pl active > active.new

			   - Tim Skirvin (tskirvin@killfile.org)
                             News Administrator, news.ks.uiuc.edu
-- 
http://www.killfile.org/~tskirvin/  Skirv's Homepage <FISH>< <*>
http://news.ks.uiuc.edu/		        UIUC News Server
Technical Details
Message-ID: <tskirvin.20061023153254$0bbe@cairo.ks.uiuc.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!news.ks.uiuc.edu!not-for-mail
References: <1a08b0d7bf2d27585240866c3a6a55d9@mars.aacity.net!nntp.aacity.net> <ehftge.1ag.1@news.isolution.nl> <2be84d40c8d4aeb63f9deef5cf85867c@nntp.aacity.net>

Show Full Headers
Complete Article Headers
Message-ID: <tskirvin.20061023153254$0bbe@cairo.ks.uiuc.edu>
Subject: Re: Cleaning active files
Date: Mon, 23 Oct 2006 10:32:52 -0500
From: tskirvin@killfile.org (Tim Skirvin)
References: <1a08b0d7bf2d27585240866c3a6a55d9@mars.aacity.net!nntp.aacity.net> <ehftge.1ag.1@news.isolution.nl> <2be84d40c8d4aeb63f9deef5cf85867c@nntp.aacity.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.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!news.ks.uiuc.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: Usenet @ UIUC - http://www.killfile.org/usenet/
Lines: 29
Reply-To: tskirvin@killfile.org
NNTP-Posting-Host: cairo.ks.uiuc.edu
X-Trace: news.ks.uiuc.edu 1161617787 14988 130.126.120.128 (23 Oct 2006
X-Complaints-To: news+abuse@ks.uiuc.edu
NNTP-Posting-Date: Mon, 23 Oct 2006 15:36:27 +0000 (UTC)
X-Note: Unless otherwise noted, I speak only for myself.
X-Signature: PGPMoose V1.1 PGP tskirvin@killfile.org
 iD8DBQFFPOF4C/OlFgQnYJ0RAteCAKCbV2U6xPekkUBtJ9yBM9jtngBTyACfQssU
 2Sf5o91Cta8Bxqvmn3DvAeY= =YGfm
User-Agent: nn/6.7.3