Article View: news.software.readers
Article #15837Re: Problem with tin when disk full
From: Ed Haymore
Date: Wed, 08 Mar 1995 05:14
Date: Wed, 08 Mar 1995 05:14
33 lines
2040 bytes
2040 bytes
billy@mix.com wrote:
| Paul S. Haring <paul_haring@jhuapl.edu> writes:
| > >I've lost count of how many times my newsrc has been hosed [...]
| > You are right sir! I deal with this problem by copying my .newsrc to
| > save.newsrc before running, just in case it (and old.newsrc) get trashed.
| > It has saved me countless times.
| I do this too, but then when all 2000 or so users do the same thing,
| it doubles the disk storage required in a situation where the lack of
| it is already causing problems. Thus effective error handling in the
| application software (tin) is a more efficient way to go.
If the users keep in their .newsrc only the groups they actually read,
the extra space is negligible.
My solution is to run tin from a script, that after tin exists, runs the
following:
if [ -s $HOME/.newsrc ];then
cp $HOME/.newsrc $HOME/.savenewsrc
fi
(Of course, the script has to be run under the Bourne shell or one that
accepts its syntax.) This copies .newsrc only if its size is greater
than zero.
I also copy it by hand to another filename every once in a while,
just in case.
--
Ed Haymore | Duct tape is like the Force. It has a light side
efh@quake.net | and a dark side, and it holds the universe together.
Technical Details
Message-ID:
<3jjeep$qhl@hack.dragoman.com>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!bga.com!news.sprintlink.net!uunet!hack.dragoman.com!efhReferences:
<D4r264.B3A@celsiustech.se> <3j5leq$aq6@valhalla.cs.wright.edu> <3j9dok$q8c@news.primenet.com>Show Full Headers
Complete Article Headers
Message-ID: <3jjeep$qhl@hack.dragoman.com> Subject: Re: Problem with tin when disk full Date: Wed, 08 Mar 1995 05:14:01 +0000 From: efh@quake.net (Ed Haymore) References: <D4r264.B3A@celsiustech.se> <3j5leq$aq6@valhalla.cs.wright.edu> <3j9dok$q8c@news.primenet.com> 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!bga.com!news.sprintlink.net!uunet!hack.dragoman.com!efh Newsgroups: news.software.readers Organization: Disorganized Lines: 33 Distribution: inet Reply-To: efh@quake.net NNTP-Posting-Host: l134.ip.quake.net X-Newsreader: TIN [version 1.2 PL2]