🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Robert B Harvey Mon, 06 Dec 1993 03:38
TIN problem.
#6814
Author: Robert B Harvey
Date: Mon, 06 Dec 1993 03:38
11 lines
1171 bytes
We have TIN on our system at Uni and it is be far the best newsreader
I have ever used. (Of course that is only three!)

But ...

The .index files take up too much space. Is there anyway to reduce
them? I only have 1.4M account and can't afford to lose too much of it
two tin. It is already chewing up ~300Kb.

Robert
harrb@valiant.vut.edu.au
Re: TIN problem.
#6824
Author: Michael Dunn
Date: Mon, 06 Dec 1993 17:49
51 lines
2591 bytes
Robert B Harvey (harrb@valiant.vut.edu.au) wrote:
: We have TIN on our system at Uni and it is be far the best newsreader
: I have ever used. (Of course that is only three!)

: But ...

: The .index files take up too much space. Is there anyway to reduce
: them? I only have 1.4M account and can't afford to lose too much of it
: two tin. It is already chewing up ~300Kb.

I had the same problem and this was my solution, it takes a bit more time 
than tin to start, (maybe a minute when the system is slow) but doesn't 
use near as much disk space.  I used zsh, but it works using sh as well.
I think the program is reasonably self explanatory, but if you have any 
questions about it I'd be glad to answer them.

#!/usr/local/test/bin/zsh

# get a unique temp. filename (
tempdir=/tmp/tinscript.$$ ; export tempdir

# the zip file we want to keep things in
zipfile=$HOME/.tin/.index/tin.zip ; export zipfile

trap 'zip1.9 -qq -m -j -f "$zipfile" "$tempdir"/* ; test -d "$tempdir" && rm -fr "$tempdir" ; exit 1'  1 2 3 15  
# trap all the exits, rezip the indexes, put them in my directory and clean up
# any files left behind, in the background (which should work even if I sign
# off.

mkdir "$tempdir" 
cp "$zipfile" "$tempdir"
cd "$tempdir" 
unzip -j -qq tin.zip  
# make a directory to put index files in
# put the ziped index files in it, unzip them 

tin -I "$tempdir" -U 
# start up tin (a newsreader) the I option tells it where to find the index
# and the U option starts a second tin in the backgroupd to update the indexes

#sleep 10 &

#set -xv
#set debugging to verbose

( while [ "`ps -x | grep -w tin | grep -v grep`" ]
do
sleep 10
done

zip1.9 -qq -m -j -f -r "$zipfile" "$tempdir" ; test -d "$tempdir" && rm -fr "$tempdir" ; exit 0 ) &
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