Article View: news.software.nntp
Article #23960problems rebuilding history file
From: Ernie Oporto
Date: Wed, 03 Dec 1997 00:00
Date: Wed, 03 Dec 1997 00:00
36 lines
1397 bytes
1397 bytes
I have the following script producing this error with INN-1.7. Anyone know
why makehistory might be causing an error? It seems to makes some of the
*.n files, but dies somewhere in the middle.
error:
------
Ok
Bad line #2 "..."
Problem rebuilding history; old file not replaced
Ok
script:
-------
#!/bin/sh
/news/bin/ctlinnd throttle "Rebuilding history database"
cd /news/etc
awk 'NF > 2 {
printf "%s\t%s\t%s", $1, $2, $3;
for (i = 4; i <= NF; i++)
printf " %s", $i;
print "\n";
}' <history >history.n
if /news/bin/makehistory -r -f history.n ; then
mv history.n history
mv history.n.pag history.pag
mv history.n.dir history.dir
else
echo 'Problem rebuilding history; old file not replaced'
fi
/news/bin/ctlinnd go "Rebuilding history database"
Technical Details
Message-ID:
<663k91$phh$1@newnews.Warren.MENTORG.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-mailShow Full Headers
Complete Article Headers
Message-ID: <663k91$phh$1@newnews.Warren.MENTORG.COM> Subject: problems rebuilding history file Date: Wed, 03 Dec 1997 00:00:00 +0000 From: "Ernie Oporto" <ernie_oporto@mentorg.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: 294832074 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Organization: Mentor Graphics Newsgroups: news.software.nntp