🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #40027

Re: How to change slrn.rc parameters on the commandline?

#40027
From: Heikki Kantola
Date: Wed, 08 Apr 1998 00:00
37 lines
1906 bytes
Hans-Joachim Zierke <hajo@quijote.Huellhorst.Zierke.com> informed
news.software.readers with the following:
>I want to start slrn with
>
>set kill_score 5000
>
>sometimes, not always. How do I do this without changing slrn.rc (or 
>.slrnrc on the other computer...). Environment setting does not work for 
>it.

If you don't need too much variation on the values of the variables
you can easily use the preprocessor commands in .slrnrc and slrn's 
-D-option, for example:

	#ifdef K5000 
	set kill_score 5000
	#elifdef K7500
	% ^^^^^^ I'm not 100% sure if that's correct...
	set kill_score 7500
	#else
	set kill_score 9999
	#endif
	
If you don't want limit the values to certain fixed list, I suggest
using slang-macro� where you read some enviroment variable and set
the variable accordingly.

� see <URL:http://www.math.ohio-state.edu/%7Elahvak/software/slrn/
macros.html> for some help.
-- 
Heikki "Hezu" Kantola, <Heikki.Kantola@IKI.FI>
L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan
osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta
tunnilta.

Technical Details
Message-ID: <slrn6imvjj.ca3.hezu@tuuri.ling.helsinki.fi>
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!not-for-mail
References: <slrn6impoq.3ja.hajo@quijote.Huellhorst.Zierke.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrn6imvjj.ca3.hezu@tuuri.ling.helsinki.fi>
Subject: Re: How to change slrn.rc parameters on the commandline?
Date: Wed, 08 Apr 1998 00:00:00 +0000
From: hezu@iki.fi (Heikki Kantola)
References: <slrn6impoq.3ja.hajo@quijote.Huellhorst.Zierke.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.mbox.zip!not-for-mail
X-Deja-AN: 342065569
Content-Transfer-Encoding: 8bit
Mail-Copies-To: never
Content-Type: text/plain; charset=iso-8859-1
Organization: Department of General Wizardry, Unseen University, Ankh-Morpork
Mime-Version: 1.0
Newsgroups: news.software.readers