🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Alexandra Griffin Sat, 17 Sep 1994 22:40
trn: any way to allow multiple trns to run at once?
#11449
Author: Alexandra Griffin
Date: Sat, 17 Sep 1994 22:40
21 lines
1773 bytes
On many occasions it would be useful to allow several instances of a
newsreader (preferably trn, my current favorite) to run at one time.
For instance, I might be in the middle of reading a long post and want
to do a quick check of another newsgroup, etc...

Can someone suggest a mechanism for allowing this?  trn, like most
newsreaders I've seen, check for simultaneous instances of themselves
on startup and refuse to run if one exists.  How is this done in trn?
With xrn I can just remove ~/.xrnlock, but trn seems to actually check
through the process table or something...

I realize that the reason this restriction exists in the first place
is to prevent .newsrc from being corrupted by simultaneous writes, and
to ensure that read-article counts remain accurate.  If I defeated the
protection mechanism, I would have to manually ensure consistency
somehow.  So, when does trn read and write to .newsrc?  What would be
easiest source code patch I could make to implement a "re-read .newsrc
and integrate changes made in this session" feature?

Just wondering...
-- alex
Re: trn: any way to allow multiple trns to run at once?
#11457
Author: Wayne Davison
Date: Sun, 18 Sep 1994 04:10
32 lines
1850 bytes
According to Alexandra Griffin <acg@kzin.cen.ufl.edu>:
> On many occasions it would be useful to allow several instances of a
> newsreader (preferably trn, my current favorite) to run at one time.

What you do is to create one or more subdirectories off your home dir
(such as "mkdir extra-newsdir"), copy your .newsrc into this directory
and then tell the 2nd trn to use this as the home for the various "dot"
files:

	setenv DOTDIR ~/extra-newsdir
or	DOTDIR=/your/home/dir/extra-newsdir; export DOTDIR

You could create a script to read news based on your current .newsrc
(that would not remember which articles you read after you exit), such
as the following:

#!/bin/sh
edir=$HOME/extra-newsdir
test -d $edir || mkdir $edir
cp $HOME/.newsrc $edir
DOTDIR=$edir trn

If you like, call it ttrn (for temporay trn), make it executable, and
put it in your private bin dir.  This script has the added advantage
that it only sets the DOTDIR variable for the duration of the trn
command.

You can also use the NNTPSERVER variable in conjunction with DOTDIR
to read multiple news servers at the same time in a similar manner.
-- 
Wayne Davison
davison@borland.com
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