🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #12006

Re: Cleaning news spool...

#12006
From: Tim Hogard
Date: Wed, 30 Oct 1996 00:00
31 lines
1600 bytes
Paul (paul@cnsnet.com) wrote:
: In trying to cleanup a messed up news spool, I am trying to
: delete anything that is older than say 4 days.  To do this I
: am using find . -type f -mtime +4 -print | xargs rm.  However
: that does not seem to celan things out.  So I even tried setting
: the -mtime to +2 to see if it was cleaning the items up and I 
: found out that when it was all finished, I still had articles
: in the group older than 2 days.

: Am I missing somehting here with the line I am using to find and 
: delete files?

Find is a bit strange on how it works.
What you need to do is use it's newer option which uses another file's
date as a time stamp.

touch /tmp/timestamp
touch 1030235996 /tmp/timestamp	        # this is a sysV type touch
					# otherwise find alog file from
					# a few days before
#and then use find's newer with a not
find /usr/spoo/news !-newer /tmp/timestamp 

Then pass that off to fastrm or use -exec rm {} \; 
once you are sure that is what you want.

-tim
http://www.abnormal.com

Technical Details
Message-ID: <5575ia$hv8@not.abnormal.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
References: <5532ml$ca@simba.cnsnet.com>

Show Full Headers
Complete Article Headers
Message-ID: <5575ia$hv8@not.abnormal.com>
Subject: Re: Cleaning news spool...
Date: Wed, 30 Oct 1996 00:00:00 +0000
From: thogard@not.abnormal.com (Tim Hogard)
References: <5532ml$ca@simba.cnsnet.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: 193141262
Distribution: inet
Organization: Abnormal.com
Newsgroups: news.software.nntp