🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #263623

Re: SLRN write newsrc to a different location

#263623
From: J.B. Nicholson
Date: Wed, 22 May 2019 06:27
23 lines
2170 bytes
Lewis wrote:
> Is there anyway while in slrn to write the current newsrc file to a
> different location?

Not currently; the server slrnrc command (which tells slrn the newsrc
to use for a particular server) can only be set from the slrnrc file
and this isn't accessible via a slrn macro.

Perhaps you could run slrn from a script that first copies your newsrc
from the shared drive to the local system if the shared drive newsrc
is more recent than the local newsrc. Then the script runs slrn (plus
whatever command line arguments you supplied) using the local
newsrc. After slrn quits the script copies your local newsrc to the
shared drive.

This means you'll be working from a local newsrc by default (so you
shouldn't lose newsrc state unless the local storage fails in which
case you probably have bigger problems). When the shared drive becomes
inaccessible at least one of the copy jobs will fail and you will have
to copy the newsrc to the shared drive yourself later. But assuming
that the shared drive is accessible most of the time, the copies will
succeed and leave you with an updated newsrc on the shared drive when
you quit slrn on one of the computers running this script.
Technical Details
Message-ID: <slrnqe9qu1.cck.jbn@forestfield.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
References: <slrnqe8lt8.tt.g.kreme@Snow.local>

Show Full Headers
Complete Article Headers
Message-ID: <slrnqe9qu1.cck.jbn@forestfield.org>
Subject: Re: SLRN write newsrc to a different location
Date: Wed, 22 May 2019 06:27:13 +0000
From: "J.B. Nicholson" <jbn@forestfield.org>
References: <slrnqe8lt8.tt.g.kreme@Snow.local>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
Newsgroups: news.software.readers
Organization: solani.org
Lines: 23
X-Trace: solani.org 1558506433 4916 127.0.0.43 (22 May 2019 06:27:13 GMT)
X-Complaints-To: abuse@news.solani.org
NNTP-Posting-Date: Wed, 22 May 2019 06:27:13 +0000 (UTC)
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:DBHOFjQS5xA7As86FWLiqCKzWtg=
X-User-ID: eJwFwYkBwEAEBMCWiMUpx9t/CZlRMbZ2mBr09AJWYMl7mrWu9GVWPHBHNGHYGzU9V0u7Iz8fKBHq
X-Received-Bytes: 2104
X-Received-Body-CRC: 957823283