🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #263005

Re: slrn scorefiles

#263005
From: J.B. Nicholson
Date: Fri, 26 Oct 2018 17:46
42 lines
2767 bytes
Susan Ruiz <susan.ruiz.unefa@gmail.com> wrote:
> Hi, I would like to know if it is possible to have two slrn scorefiles,
> one at a general level of the system and another at the level of each
> user, is this possible?

Yes; you don't mention if you're trying to alternate between the two
scorefiles or use them together (perhaps to get everyone on the system
to share a common scorefile but also allow each user to have their own
additional scores as well). Others have explained alternation, so I'll
explain a way to use them together that doesn't require any scripting:
Include a system-level score file in your personal score file with the
"include" command.

See http://slrn.sourceforge.net/docs/score.html for details.

#v+
Finally a score file may include other score files via the `include'
statement. The syntax is simple:

        include FILE

The name of the file is considered to be relative to the directory of
the file including it, unless an absolute path is specified.
#v-

In your case, something like the following should work:

1. Create the system-wide score file in /usr/local/share/slrn/score
2. Create your score file in ~/.slrn/score
3. Be sure your score file has the following line in it:

  include /usr/local/share/slrn/score

Since scores can be set up so that their order matters, I'd consider
the location of the include command to be significant -- place it
where you would want the system-wide scores to appear if you were to
copy them into your own scorefile.

To test if this is working: You can put score entries in one score
file but not the other (perhaps a score that only matches one article
you've chosen to test on) and then use "v" on some article to get slrn
to explain how it arrived at the score that article currently has.
Technical Details
Message-ID: <slrnpt6kmv.308.jbn@forestfield.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.(126883).mbox.7z!not-for-mail
References: <slrnpsekbh.675.susan.ruiz.unefa@eternal-september.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrnpt6kmv.308.jbn@forestfield.org>
Subject: Re: slrn scorefiles
Date: Fri, 26 Oct 2018 17:46:07 +0000
From: "J.B. Nicholson" <jbn@forestfield.org>
References: <slrnpsekbh.675.susan.ruiz.unefa@eternal-september.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.(126883).mbox.7z!not-for-mail
Newsgroups: news.software.readers
Organization: solani.org
Lines: 42
X-Trace: solani.org 1540575967 11283 127.0.0.43 (26 Oct 2018 17:46:07 GMT)
X-Complaints-To: abuse@news.solani.org
NNTP-Posting-Date: Fri, 26 Oct 2018 17:46:07 +0000 (UTC)
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:Et9yPglcdQE5SHInvqx1jJdfkE4=
X-User-ID: eJwFwQERACAIA8BKMtiUOOJB/wj+02V6O0QFh+ML2WQialX5Q3oPeS32kQwTzFLzqG3j4gMCyRAY
X-Received-Bytes: 2716
X-Received-Body-CRC: 2496856256