🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by Lewis Tue, 21 May 2019 19:55
SLRN write newsrc to a different location
#263622
Author: Lewis
Date: Tue, 21 May 2019 19:55
15 lines
1656 bytes
Is there anyway while in slrn to write the current newsrc file to a
different location?

I store my news files on a shared drive so that I can access mail from
many machines and have identical configurations and read.unread articles,
but yesterday the shared drive went offline. I was unable to exist slrn
without discarding the current state because I could not find a way to
save the newsrc to a different path.

Now, this nearly never happens, but I'd like to avoid it in the future
if possible.

-- 
If women wear a pair of pants, a pair of glasses, and a pair of
earrings, why don't they wear a pair of bras?
Re: SLRN write newsrc to a different location
#263621
Author: Grant Taylor
Date: Tue, 21 May 2019 20:32
30 lines
2230 bytes
On 5/21/19 1:55 PM, Lewis wrote:
> Is there anyway while in slrn to write the current newsrc file to a 
> different location?
> 
> I store my news files on a shared drive so that I can access mail 
> from many machines and have identical configurations and read.unread 
> articles, but yesterday the shared drive went offline. I was unable 
> to exist slrn without discarding the current state because I could 
> not find a way to save the newsrc to a different path.
> 
> Now, this nearly never happens, but I'd like to avoid it in the future 
> if possible.

I have no idea if this would help you or not.

Can you have slrn point to a local file that is itself a sym-link to the 
central location?

Because if you can, you could probably remove the (temporarily) broken 
sym-link and replace it with a regular file.  That would allow slrn to 
open and write to the file.

I guess you could still run into issues if slrn opens the central copy 
and subsequently looses access / has a stale file handle.



-- 
Grant. . . .
unix || die
Re: SLRN write newsrc to a different location
#263623
Author: 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.
Re: SLRN write newsrc to a different location
#263624
Author: Lewis
Date: Wed, 22 May 2019 06:40
39 lines
2754 bytes
In message <qc1na2$pd1$1@tncsrv09.home.tnetconsulting.net> Grant Taylor <gtaylor@tnetconsulting.net> wrote:
> On 5/21/19 1:55 PM, Lewis wrote:
>> Is there anyway while in slrn to write the current newsrc file to a 
>> different location?
>> 
>> I store my news files on a shared drive so that I can access mail 
>> from many machines and have identical configurations and read.unread 
>> articles, but yesterday the shared drive went offline. I was unable 
>> to exist slrn without discarding the current state because I could 
>> not find a way to save the newsrc to a different path.
>> 
>> Now, this nearly never happens, but I'd like to avoid it in the future 
>> if possible.

> I have no idea if this would help you or not.

> Can you have slrn point to a local file that is itself a sym-link to the 
> central location?

No, that is actually how it is setup, and the write follows the symlink
to the void.

> Because if you can, you could probably remove the (temporarily) broken 
> sym-link and replace it with a regular file.  That would allow slrn to 
> open and write to the file.

Ah, I see what you mean, that might work. Maybe.

Fortunately in this case I only lost about a dozen read-status messages
that showed up new again the next day. I will keep that in mind if this
happens again. Which hopefully it will not.

> I guess you could still run into issues if slrn opens the central copy 
> and subsequently looses access / has a stale file handle.

That is my suspicion, but it's worth a shot.

-- 
"Kill yourself and roll a rogue. We'll wait"
Re: SLRN write newsrc to a different location
#263625
Author: Lewis
Date: Wed, 22 May 2019 06:41
31 lines
2688 bytes
In message <slrnqe9qu1.cck.jbn@forestfield.org> J.B. Nicholson <jbn@forestfield.org> wrote:
> 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.

That is more fiddly than I want to do for something that happens rarely
(well, uniquely, so far).

-- 
I've never seen religious faith move mountains, but I've seen what it does
to skyscrapers.
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