🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #121636

Re: Little OT: script to start slrn

#121636
From: Brad
Date: Mon, 10 Mar 2003 19:55
33 lines
2015 bytes
DjB <dick@nospam.please.bolderman.xs4all.nl> wrote in
news:slrnb5pdt1.2at.dick@dbhome.bolderman.xs4all.nl: 

> I'm using slrn with 2 servers and now I'm looking to create
> a little script in which you can choose which server you
> want to use, eg: 1. isp 2. pay server...
> 
> Also, is it possible to include a check if slrn is alread
> running, and display a message if this is the case ?
> 
> Must be very simple to make, but I'm an absolute beginner
> when it comes to scripting :(
> 
> Thanks
> 

I have two scripts that will do almost exactly what you
are wanting to do.

It doesn't check to see if slrn is already running,
but if you attempt to connect to a server that is
running in another instance slrn will scream that
the .jnewsrc is in use; so why reinvent the wheel <g>.

This is the link to the bash script that lets you
sellect which server to use... 
   <http://home.insightbb.com/~bmsims1/Scripts/slrnh>
I do see some things I should clean up in it, but it
should give you a good idea of where to start.

This is a link to the sigmonster I wrote:
   <http://home.insightbb.com/~bmsims1/Scripts/picksig>
Technical Details
Message-ID: <b4iqjc$1uf8rv$1@ID-153924.news.dfncis.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!fu-berlin.de!uni-berlin.de!216-166-244-195.dsl.glbgil.grics.NET!not-for-mail
References: <slrnb5pdt1.2at.dick@dbhome.bolderman.xs4all.nl>

Show Full Headers
Complete Article Headers
Message-ID: <b4iqjc$1uf8rv$1@ID-153924.news.dfncis.de>
Subject: Re: Little OT: script to start slrn
Date: Mon, 10 Mar 2003 19:55:25 +0000
From: Brad <bsims@abnt.org>
References: <slrnb5pdt1.2at.dick@dbhome.bolderman.xs4all.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!fu-berlin.de!uni-berlin.de!216-166-244-195.dsl.glbgil.grics.NET!not-for-mail
Newsgroups: news.software.readers
Organization: What's that?
Lines: 32
NNTP-Posting-Host: 216-166-244-195.dsl.glbgil.grics.net (216.166.244.195)
X-Trace: fu-berlin.de 1047326125 65512319 216.166.244.195 (16 [153924])
User-Agent: Xnews/4.06.22