Article View: news.software.readers
Article #120833Re: Little OT: script to start slrn
From: SINNER
Date: Wed, 26 Feb 2003 13:50
Date: Wed, 26 Feb 2003 13:50
40 lines
2998 bytes
2998 bytes
While strolling through news.software.readers, DjB was overheard plotting: > * Markku Lehtola <markku@markkulehtola_NOSPAM.net>: >> In article <slrnb5pdt1.2at.dick@dbhome.bolderman.xs4all.nl>, DjB wrote: > >>> 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 :( > >> Isn't it easier to create 2 different scripts instead of one? > > Well, I could create 2 scripts, but one is nicer :) And depending on > which location I am, I also want to be able to include color/mono > options, and so on. So if I have an example of how to make such script, > I can easy extend it mself. > > Well I see one of 2 ways to accomplish same. 1) have to slrnrc files named differently and use the script to start it. slrn -f /path/to/slrnrc.1 etc OR have the script prompt you with <STDIN> and you tell it which file to use. the former requires 2 scripts, the latter only 1. I am no script writer but it sounds like a 2 or 3 liner at best. 2) use leafnode to grab groups and articles from all servers in one place so you can read everything in one copy of slrn. Leafnode is a local newsserver in the event you hadn't heard of it. HTH -- David if it GLISTENS, gobble it!!
Technical Details
Message-ID:
<33tui-lkh.ln1@news.gates_of_hell.INVALID>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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.he.net!cyclone-sf.pbi.net!151.164.30.35!cyclone.swbell.net!newsfeed1.easynews.com!easynews.com!easynews!easynews-local!post-03.news.easynews.com.POSTED!news.gates_of_hell.INVALID!newsReferences:
<slrnb5pdt1.2at.dick@dbhome.bolderman.xs4all.nl> <b3idc5$t8i$3@phys-news1.kolumbus.fi> <slrnb5pehh.2at.dick@dbhome.bolderman.xs4all.nl>Show Full Headers
Complete Article Headers
Message-ID: <33tui-lkh.ln1@news.gates_of_hell.INVALID>
Subject: Re: Little OT: script to start slrn
Date: Wed, 26 Feb 2003 13:50:10 GMT
From: SINNER <99nesorjd@gates_of_hell.INVALID>
References: <slrnb5pdt1.2at.dick@dbhome.bolderman.xs4all.nl> <b3idc5$t8i$3@phys-news1.kolumbus.fi> <slrnb5pehh.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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.he.net!cyclone-sf.pbi.net!151.164.30.35!cyclone.swbell.net!newsfeed1.easynews.com!easynews.com!easynews!easynews-local!post-03.news.easynews.com.POSTED!news.gates_of_hell.INVALID!news
Newsgroups: news.software.readers
Organization: HELL.org.
Reply-To: djrosen99@yahoo.REMOVE.com
X-Face: j3Hseu?@9(oM8Qht'.|x"P;#6O^DS:`<EeQl\nPhWL0gK@q#/HId~hImj@>>`+Y#mKi}E!] Pcnn^4"Rv90]koG~uYPgP|oP&Sb0!7:zYHz/dx8,X_6dk5p.H4)/t&NnlW>4YI+?wCV{m4sZpxTEl: ,E,i|B|Bi]1>Yn/Qqul6t77U?xaHDM~?8)'H59F!XPKbF2LOkeVf4=J%!<`T(3jy$7\%eZH.NLv(hr E)4F5*r`n50Xwk81N*gJE\\}uh9n7v\Cb9-nHaoL|ZNDI
User-Agent: slrn/0.9.7.4 (Linux)
Lines: 39
X-Complaints-To: abuse@easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.