Article View: news.software.nntp
Article #19146Re: Possible solution for keeping control.* clean
From: Hugh Messenger
Date: Thu, 10 Jul 1997 00:00
Date: Thu, 10 Jul 1997 00:00
39 lines
2068 bytes
2068 bytes
Scott W. Gifford <sgifford@tir.com> wrote in article
<01bc8bce$75f8e160$f8298acd@sgifford.tir.com>...
> And you're right about the stat; feel free to move it. If anybody
wants
> a patched copy, email me and I'll keep you up-to-date.
Speaking of patches ...
I'm running your script, but it was blowing up on any groups with double ++
signs in them (like foo.bar.c++), during the grep (somewhere around line
70). So I changed the @CLEANDIRS to be an associative array, and instead
of grepping in a scalar context, I just check for the existence of
$cleandirs{$grp}. While I was at it, I moved the stat() as well. :)
I can send you the new version if you want. With these two small changes
it seems to be running well. I'm currently also rm'ing the .overview from
cron at the same time, I'm probably going to move that in to the script.
My next hack on your script is going to be adding NOV "expiration", so I
can run the script over directories like misc.jobs.offered, without
screwing up the NOV file too badly. NOV sanity would be a command line
option - no point in doing it to control.cancel, after all.
Anyway, thanks for the script.
OS is Digital UNIX (The Operating System Formerly Known As OSF) 4.0b.
Perl is 5.002 (I know, I know, I'll get round to it one of these days!!).
> -----Scott.
-- hugh
Technical Details
Message-ID:
<01bc8d6d$896c7770$1ba08781@cerebus>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:
<01bc8913$1adff4c0$d8298acd@sgifford-home.tir.com> <01bc8988$87554040$d8298acd@sgifford-home.tir.com> <5pnip3$1bq$1@flea.best.net> <01bc8bce$75f8e160$f8298acd@sgifford.tir.com>Show Full Headers
Complete Article Headers
Message-ID: <01bc8d6d$896c7770$1ba08781@cerebus> Subject: Re: Possible solution for keeping control.* clean Date: Thu, 10 Jul 1997 00:00:00 +0000 From: "Hugh Messenger" <hmesseng@ingr.com> References: <01bc8913$1adff4c0$d8298acd@sgifford-home.tir.com> <01bc8988$87554040$d8298acd@sgifford-home.tir.com> <5pnip3$1bq$1@flea.best.net> <01bc8bce$75f8e160$f8298acd@sgifford.tir.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: 256029393 Organization: Intergraph Newsgroups: news.software.nntp