🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #13608

Re: Fixhist question...

#13608
From: News Administrator
Date: Mon, 30 Dec 1996 00:00
84 lines
3379 bytes
Paul (paul@cnsnet.com) wrote:
: I have been trying to run fixhist.pl to look thru my spool for items that 
: are not in the history file, but it seems that I am either doing somehting
: wrong or it's just doesn't work.
: 
: Do I need to modify anything in this file to point it to where my spool is
: at?
: 
: Paul

Hi Paul,

I had the same confusion when I wanted to use it. They made it a little
mysterious. It is actually one shell and one perl script in the same 
program! It has nothing to do with your spool directory. Take the following 
steps to run it. Depending on your system it might take up to 20 minutes to
fix the history file and you need free space around history* files in that:
partition:

1- copy the "fixhist" file into $NEWSLIB/bin directory and call it fixhist.pl.

2- Comment the line print STDERR "Done. ....... at the end of the file.
   (and  possibly modify the first line to point your perl or perl5)

3- Create a shell script in your $NEWSLIB (where history files are). You can
   call it "fixhist.sh" and copy the following lines into it ( From #INN Usage
   part of "fixhist"i):

   ctlinnd throttle 'fixing history'
#
   ./bin/fixhist.pl  <history >history.n
#
   makehistory -r -s `wc -l <history.n` -f history.n
   mv history.n history
   mv history.n.dir history.dir
   mv history.n.pag history.pag
   ctlinnd reload history x
   ctlinnd go 'fixing history'
# any malformed entries will be output to stderr.

4- Make sure you are in $NEWSLIB directory and run the script (fixhist.sh).

You should be done with fixing history. Now if you want to find and remove
missing articles from history file, you have to download "findmissing.pl" to
$NEWSLIB/bin and check the following lines to match your setup as the program
suggests:
$history ..........
$spool ...........

(and possibly modify the first line to point your perl or perl5)

Then run the following shell (findmissing.sh) from your $NEWSLIB
(e.g. /usr/local/news):

#! /bin/sh
#
./bin/findmissing.pl  > findmissing.pl.output
./bin/fastrm -e -u -s /var/spool/news < findmissing.pl.output
rm findmissing.pl.output

(assuming your articles are  under /var/spool/news/ ). Try to run
findmissing.pl first and check "findmissing.pl.output" file then run "fastrm"
line. As I remember I used the following line (-v option) and the output file
was not clean:

./bin/findmissing.pl -v  > findmissing.pl.output

For the second line (fastrm -e -u -s) I used the same options with fastrm as
"news.daily" uses (i.e. -e -u -s ). It worked for me.


You can do the whole thing  differently if you can run shell commands from
inside the perl scripts.

You might want to double check things before taking my words!

Bye, Ali

--
ali@more.net         Ali Bakhshandeh


Technical Details
Message-ID: <5a70um$dta@newshub.more.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-mail
References: <5a6a48$370@simba.cnsnet.com>

Show Full Headers
Complete Article Headers
Message-ID: <5a70um$dta@newshub.more.net>
Subject: Re: Fixhist question...
Date: Mon, 30 Dec 1996 00:00:00 +0000
From: news@newshub.more.net (News Administrator)
References: <5a6a48$370@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: 206696604
Organization: Missouri Research and Education Network
Newsgroups: news.software.nntp