Article View: news.software.nntp
Article #19033Re: Possible solution for keeping control.* clean
From: Matt Dillon
Date: Sun, 06 Jul 1997 00:00
Date: Sun, 06 Jul 1997 00:00
28 lines
1793 bytes
1793 bytes
:In article <01bc8988$87554040$d8298acd@sgifford-home.tir.com>,
:Scott W. Gifford <sgifford@tir.com> wrote:
:> Just in case somebody wants to run this script, I thought I'd better post
:>the updated version that has one very substantial improvement...It works
:>correctly (or at least MORE correctly... :) ). The old version deleted any
:>articles which were posted after the script started, which meant it would
:>delete lots of them before they could be propogated...The new one checks
:>the modification time on the files before deleting them, and makes sure it
:>was there when the script started. Unfortunately this means a stat() for
:>every article, but it's better than losing them...
:>
:>----Scott.
:>
:>#!/usr/local/bin/perl
:>
:># $Id: cleanifprop,v 1.5 1997-07-05 17:10:26-04 sgifford Exp $
:...
My newsprune program will do all this a lot faster
( http://www.backplane.com/ ), but if you want to improve your perl script
you should move the stat. There is no sense doing the stat unless you
actually get to the point where you would otherwise remove the article.
-Matt
Technical Details
Message-ID:
<5pnip3$1bq$1@flea.best.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-mailReferences:
<01bc8913$1adff4c0$d8298acd@sgifford-home.tir.com> <01bc8988$87554040$d8298acd@sgifford-home.tir.com>Show Full Headers
Complete Article Headers
Message-ID: <5pnip3$1bq$1@flea.best.net> Subject: Re: Possible solution for keeping control.* clean Date: Sun, 06 Jul 1997 00:00:00 +0000 From: dillon@flea.best.net (Matt Dillon) References: <01bc8913$1adff4c0$d8298acd@sgifford-home.tir.com> <01bc8988$87554040$d8298acd@sgifford-home.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: 254947527 Organization: Best Internet Communications, Inc. - 415 964 BEST Newsgroups: news.software.nntp