🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #6824

Re: TIN problem.

#6824
From: 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 ) &
Technical Details
Message-ID: <2dvrbiINNl67@uwm.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!rrz.uni-koeln.de!news.rhrz.uni-bonn.de!urmel.informatik.rwth-aachen.de!uni-paderborn.de!zib-berlin.de!xlink.net!howland.reston.ans.net!news.moneng.mei.com!uwm.edu!csd4.csd.uwm.edu!mrdunn
References: <CHLGru.CLs@matilda.vut.edu.au>

Show Full Headers
Complete Article Headers
Message-ID: <2dvrbiINNl67@uwm.edu>
Subject: Re: TIN problem.
Date: Mon, 06 Dec 1993 17:49:38 +0000
From: mrdunn@csd4.csd.uwm.edu (Michael Dunn)
References: <CHLGru.CLs@matilda.vut.edu.au>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!rrz.uni-koeln.de!news.rhrz.uni-bonn.de!urmel.informatik.rwth-aachen.de!uni-paderborn.de!zib-berlin.de!xlink.net!howland.reston.ans.net!news.moneng.mei.com!uwm.edu!csd4.csd.uwm.edu!mrdunn
Newsgroups: news.software.readers
Organization: University of Wisconsin - Milwaukee
Lines: 55
NNTP-Posting-Host: 129.89.7.4
X-Newsreader: TIN [version 1.1 PL9]