🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Paul Sun, 29 Dec 1996 00:00
Fixhist question...
#13597
Author: Paul
Date: Sun, 29 Dec 1996 00:00
11 lines
754 bytes
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

Re: Fixhist question...
#13608
Author: 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


Re: Fixhist question...
#13623
Author: Dave Barr
Date: Mon, 30 Dec 1996 00:00
14 lines
1013 bytes
In article <5a6a48$370@simba.cnsnet.com>, 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.

It would help if you used the right tool.  fixhist removes bogus
entries from your history file (ones that are syntactially invalid).

It sounds like you want 'findmissing.pl'.

--Dave

Re: Fixhist question...
#13663
Author: Mike O'Connor
Date: Tue, 31 Dec 1996 00:00
21 lines
1208 bytes
In article <5a6a48$370@simba.cnsnet.com>, 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.

I think you'll want to check out the makehistory command, specifically
"makehistory -bun".

:Do I need to modify anything in this file to point it to where my spool is
:at?
:
:Paul

 
--
 Michael J. O'Connor                                           mjo@dojo.mi.org
"I don't want the world.  I just want your half."        -They Might Be Giants


Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads