🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Rod Eldridge Wed, 19 Feb 1997 00:00
Where does the batchfile get truncated? Head or Tail?
#15157
Author: Rod Eldridge
Date: Wed, 19 Feb 1997 00:00
22 lines
1452 bytes
I'm running INN 1.5.1. The manpage for shrinkfile says that the file
is truncated "preserving the data at the end of the file". While the
manpage for nntpsend.ctl says that the third field, if any, "specifies
the default tail truncation size of site's batchfile". The nntpsend
manpage also says "shrinkfile will be invoked to perform a tail
truncation".

Does anybody know where the truncation is actually ocurring? At the
head like shrinkfile's manpage says? Or a the tail like the nntpsend
and nntpsend.ctl manpages say?

If it is at the head, then okay. But if it is at the tail, then how do I
get the sort of the batchfile to sort in reverse order? I'd just as soon
truncate alt.* at the head of the sorted batchfile then to truncatate
at non-alt.* at the tail of the sorted batchfile.

--
Rod Eldridge            mailto:rod@iastate.edu
Iowa State University   http://www.public.iastate.edu/~rod

Re: Where does the batchfile get truncated? Head or Tail?
#15218
Author: Rich Salz
Date: Fri, 21 Feb 1997 00:00
11 lines
871 bytes
In <5efcv1$ebe$1@news.iastate.edu> rod@iastate.edu (Rod Eldridge) writes:
> While the
>manpage for nntpsend.ctl says that the third field, if any, "specifies
>the default tail truncation size of site's batchfile".

This is poor wording that means "how much of the tail of the file to
save." :)
	/r$

Re: Where does the batchfile get truncated? Head or Tail?
#15296
Author: Eric Mehlhaff
Date: Mon, 24 Feb 1997 00:00
28 lines
1696 bytes
I was wondering this very thing myself, and to answer that question I took
a look at the source code for shrinkfile.  

At least in inn1.4unoff, it seeks an offset size from the end of file, and 
copies forward.   So, yes, it preserves the data at the end end of the file
and throws away the old data at the start.

Never trust incomplete documentation --- the source is the best
documentation you could hope for!  Its just not always that readable.


In article <5efcv1$ebe$1@news.iastate.edu>,
Rod Eldridge <rod@iastate.edu> wrote:
>I'm running INN 1.5.1. The manpage for shrinkfile says that the file
>is truncated "preserving the data at the end of the file". While the
>manpage for nntpsend.ctl says that the third field, if any, "specifies
>the default tail truncation size of site's batchfile". The nntpsend
>manpage also says "shrinkfile will be invoked to perform a tail
>truncation".
>
>Does anybody know where the truncation is actually ocurring? At the
>head like shrinkfile's manpage says? Or a the tail like the nntpsend
>and nntpsend.ctl manpages say?
>


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