Article View: news.software.readers
Article #204954[slrn] Does the initial attempt to connect return a trappable code?
From: Pseudo Silk Kimono
Date: Mon, 27 Aug 2007 21:54
Date: Mon, 27 Aug 2007 21:54
38 lines
2621 bytes
2621 bytes
Greetings,
Based on the recent outage on motzarella, I would like to create a
script which will attempt to connect to news.motzarella.org and if
it fails, attempt to use the other reader.motzarella.org and then
nntp.motzarella.org. I am not new to scripting and already have an idea
of how I want to do it. 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?
Plan
a) create 3 .slrnrc files, one for each of the motzarella servers
b) cp slrnrc_news .slrnrc
c) export NNTPSERVER=news.motzarella.org
d) try to connect to news.motzarella...
e) if it fails
i. cp slrnrc_reader .slrnrc
ii. export NNTPSERVER=reader.motzarella.org
iii. try to connect to reader.motzarella.org
iv. if it fails
A cp slrnrc_nntp .slrnrc
B export NNTPSERVER=nntp.motzarella.org
C try to connect to nntp.motzarella.org
D if it fails die
--
What were you? A jock or a brain?" http://blinkynet.net/comp/uip5.html
"I was a ghost." PSK - RLU 452647
Warrick Brown and Gil Grissom (Bully for You)
Technical Details
Message-ID:
<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!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.karotte.org!news2.arglkargh.de!feeder.erje.net!news.motzarella.org!motzarella.org!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <favh6c$9rj$1@registered.motzarella.org> Subject: [slrn] Does the initial attempt to connect return a trappable code? Date: Mon, 27 Aug 2007 21:54:20 +0000 From: Pseudo Silk Kimono <Pseudo_Silk_Kimono@marillion.com> 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!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.karotte.org!news2.arglkargh.de!feeder.erje.net!news.motzarella.org!motzarella.org!not-for-mail Newsgroups: news.software.readers Organization: I Am The Walrus Lines: 38 X-Trace: tomate.motzarella.org U2FsdGVkX1+INKmq87yXm9d9sRPelLrIusr4VwXJc/MJ4YG/3iRLhsXPMVFzR8VrEE13NKU/4J5z86sdS9d3ABdZGrhcRlJxOVzTea/ueekQkAu3JOTkhP6xAc/VxFinx/Eg9+hYdQ2QUuJfxFE5qHFZgfVHOgUZ X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers NNTP-Posting-Date: Mon, 27 Aug 2007 21:54:20 +0000 (UTC) User-Agent: slrn/0.9.8.1pl1 (Debian) X-Auth-Sender: U2FsdGVkX1+Te71AEYu+kRyB5qPb8xmbk23njV6QtEgZ+uSHl5NcnmtLXRemtd4oeL6A/RXXJZo= Cancel-Lock: sha1:NO35iMnQc7R9RtzqY5KXQPRYfug=