Thread View: news.software.readers
5 messages
5 total messages
Started by Susan Ruiz
Wed, 17 Oct 2018 15:29
slrn scorefiles
Author: Susan Ruiz
Date: Wed, 17 Oct 2018 15:29
Date: Wed, 17 Oct 2018 15:29
12 lines
1156 bytes
1156 bytes
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? Thanks in advance Regards -- Susan Ruiz
Re: slrn scorefiles
Author: Allodoxaphobia
Date: Wed, 17 Oct 2018 16:25
Date: Wed, 17 Oct 2018 16:25
22 lines
1536 bytes
1536 bytes
On Wed, 17 Oct 2018 15:29:08 -0000 (UTC), Susan Ruiz 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?
Dunno about using two, but you could run slrn in a shell script
that _merges_ two such files.
E.g.:
$ cp /etc/global_score score
$ cat local_score >> score
$ slrn ..........
Howsomever, any score updates done while in slrn would be lost
on the next execution.
Not much help, I suppose.
Jonesy
--
Marvin L Jones | Marvin | W3DHJ.net | linux
38.238N 104.547W | @ jonz.net | Jonesy | FreeBSD
* Killfiling google & XXXXbanter.com: jonz.net/ng.htm
Re: slrn scorefiles
Author: Neodome Admin
Date: Fri, 19 Oct 2018 09:29
Date: Fri, 19 Oct 2018 09:29
23 lines
2216 bytes
2216 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?
>
> Thanks in advance
>
> Regards
>
>
>
It was a while since I used slrn, but to docs, you can set the score file
location:
set scorefile "scores/default.score"
<http://slrn.sourceforge.net/docs/score.txt>
Then run slrn with -i option to choose appropriate config file.
--
Neodome
Re: slrn scorefiles
Author: Neodome Admin
Date: Fri, 19 Oct 2018 09:33
Date: Fri, 19 Oct 2018 09:33
31 lines
2351 bytes
2351 bytes
Neodome Admin <admin@neodome.net> wrote: > 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? >> >> Thanks in advance >> >> Regards >> >> >> > > It was a while since I used slrn, but to docs, *according* to docs > you can set the score file > location: > > set scorefile "scores/default.score" > > <http://slrn.sourceforge.net/docs/score.txt> > > Then run slrn with -i option to choose appropriate config file. > -- Neodome
Re: slrn scorefiles
Author: J.B. Nicholson
Date: Fri, 26 Oct 2018 17:46
Date: Fri, 26 Oct 2018 17:46
42 lines
2767 bytes
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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads