🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #205034

Re: [slrn] Does the initial attempt to connect return a trappable code?

#205034
From: Peter J Ross
Date: Wed, 29 Aug 2007 11:27
36 lines
2089 bytes
In news.software.readers on Mon, 27 Aug 2007 21:54:20 +0000 (UTC),
Pseudo Silk Kimono <Pseudo_Silk_Kimono@marillion.com> wrote:

> My question is, when I type slrn, it jumps 
> directly to the main "window".  Is there a way to invoke slrn in such a
> way that it does not immediatly display the main "window", rather it
> would allow me to interogate a return code, or status so that I can
> take action on a failed connection?

$ slrn -w

> Plan
>
> a)  create 3 .slrnrc files, one for each of the motzarella servers

This shouldn't be necessary. E.g.:

#if$NNTPSERVER news.motzarella.org
	% options
#endif
#if$NNTPSERVER reader.motzarella.org
	% options
#endif

> b)  cp slrnrc_news .slrnrc
> c)  export NNTPSERVER=news.motzarella.org
> d)  try to connect to news.motzarella...

Would it not be quicker to ping the servers and set $NNTPSERVER to the
first server that responds?


-- 
PJR :-)
<http://pjr.gotdns.org/verse/16-poems>
Technical Details
Message-ID: <slrnfdam0v.3ge.pjr@pjr.gotdns.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.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!indigo.octanews.net!authen.yellow.readfreenews.net.POSTED!not-for-mail
References: <favh6c$9rj$1@registered.motzarella.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrnfdam0v.3ge.pjr@pjr.gotdns.org>
Subject: Re: [slrn] Does the initial attempt to connect return a trappable code?
Date: Wed, 29 Aug 2007 11:27:27 +0000
From: Peter J Ross <pjr@example.invalid>
References: <favh6c$9rj$1@registered.motzarella.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.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!indigo.octanews.net!authen.yellow.readfreenews.net.POSTED!not-for-mail
Newsgroups: news.software.readers
Organization: none
Reply-To: pjr.spam@gmail.com
User-Agent: slrn/0.9.8.1pl2.1 (Linux)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 36
NNTP-Posting-Date: 29 Aug 2007 06:27:27 CDT
X-Trace: DXC=gm>H>hUY;
 5k=RS4KWNS^Xj]AGWjF5PjPi465Ue@WB_5o>^g]nab8J@l26Z<EbT:a\elV3mi\haFgh[\J[m5T^07eScOmbK1JWEd
X-Original-Bytes: 1769