Thread View: news.software.nntp
1 messages
1 total messages
Started by Ernie Oporto
Wed, 03 Dec 1997 00:00
problems rebuilding history file
Author: 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"
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