🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #1593

Re: Possible Feature Request for [t]rn...

#1593
From: Icarus Sparry
Date: Wed, 20 May 1992 09:25
32 lines
1802 bytes
In article <1992May19.230452.25383@cfctech.cfc.com> kevin@cfctech.cfc.com (Kevin Darcy) writes:
>Put simply: read-only operation.
>
>Well, currently when one has one [t]rn running, one 
>cannot successfully invoke another copy of [t]rn.
>
>If there is a way to get this read-only functionality without program changes, 
>or switching to a different newsreader altogether, please let me know. I've
>already hunted in vain through TFM...

How about a shell script, to do somthing like

#!/bin/sh
# Set up a unique place to work
TD=/tmp/$USER.$$
mkdir $TD
# Set SRC to be where rn currently holds its files
SRC=${DOTDIR:-$HOME}
# Make copies of them in our temporary space
cp $SRC/.rnmac $SRC/.newsrc $SRC/.rnsoft $SRC/.rnlast $TD
# Make sure that our new copy of rn picks these up instead
export DOTDIR
DOTDIR=$TD
# Just to show off, we will alter the header
FIRSTLINE='Article %a %(%U%M!=^00$?(%U more%(%M!=^0$? + %M Marked to return)\) )in %C: READONLY'
export FIRSTLINE
# Fire up a new copy of rn
/usr/local/bin/rn
# Clean up after ourselves
rm -r $TD

This does not handle signals, but you should be able to get the general idea.
Technical Details
Message-ID: <1992May20.092502.6693@gdt.bath.ac.uk>
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!sparky!uunet!mcsun!uknet!gdt!ccsis
References: <1992May19.230452.25383@cfctech.cfc.com>

Show Full Headers
Complete Article Headers
Message-ID: <1992May20.092502.6693@gdt.bath.ac.uk>
Subject: Re: Possible Feature Request for [t]rn...
Date: Wed, 20 May 1992 09:25:02 +0000
From: ccsis@gdt.bath.ac.uk (Icarus Sparry)
References: <1992May19.230452.25383@cfctech.cfc.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!sparky!uunet!mcsun!uknet!gdt!ccsis
Newsgroups: news.software.readers
Summary: Use a shell script
Organization: Bath University Computing Services, UK
Lines: 32