Article View: news.software.nntp
Article #5551Re: (Q) History and findmissing.pl
From: Harry Bochner
Date: Mon, 11 Mar 1996 00:00
Date: Mon, 11 Mar 1996 00:00
34 lines
1893 bytes
1893 bytes
In article <4i1od8$hls@flood.xnet.com>, paul@cnsnet.com(Paul Schaller) writes: |> So what I am looking for is |> maybe a script that uses findmissing.pl and either removes these files |> after finding them, Assuming you use delayrm, and therefore have expirerm configured to give fastrm the right options for your configuration, this should work nicely: expirerm [fullpathname to list of missing files] 'xargs rm', will work too, as Dave Barr suggests, but if there are lots of missing files, expirerm will be faster. Same for "perl -ne 'chop; unlink'". (Note that findmissing produces a list that is already sorted, suitable for feeding into expirerm ;-) Just remember that expirerm needs a full pathname, since it cd's before it opens the input file. |> or better yet, adds them to the history database. That's on my agenda, but I don't know when/if I'll get to it. Haven't needed it desparately yet ;-) |> Should I just remove the current history and go from there? Build |> a new history file and let expire remove these articles? The only problem with this approach is that on a big system makeistory takes a _long_ time. We're trying to minimize your downtime, and thereby the complaints from users ;-) -- Harry Bochner bochner@das.harvard.edu
Technical Details
Message-ID:
<4i1tns$5mf@necco.harvard.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.mbox.zip!not-for-mailReferences:
<4i1od8$hls@flood.xnet.com>Show Full Headers
Complete Article Headers
Message-ID: <4i1tns$5mf@necco.harvard.edu> Subject: Re: (Q) History and findmissing.pl Date: Mon, 11 Mar 1996 00:00:00 +0000 From: bochner@das.harvard.edu (Harry Bochner) References: <4i1od8$hls@flood.xnet.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: 142462797 Sender: bochner@das (Harry Bochner) Organization: Aiken Computation Lab, Harvard University Newsgroups: news.software.nntp