Article View: news.software.readers
Article #47630Re: slrn 0.9.5.2 + leafnode 1.7.1
From: Sylvain Robitaille
Date: Tue, 30 Mar 1999 00:00
Date: Tue, 30 Mar 1999 00:00
94 lines
5567 bytes
5567 bytes
On Sun, 28 Mar 1999 08:35:51 -0600, Monte Milanuk <mm43300@navix.net> wrote:
>> I'd recommend you consider using slrnpull instead.
>
> Well, I considered that as well, plus inn+suck. The latter seemed
> just a wee bit of overkill for a one user machine at home, though good
> practice if I should later want to 'sell' my employer on Linux.
I certainly agree. You shouldn't need to run a full blown news server,
though I also agree the experience could be useful.
> The former didn't seem to be much easier to setup the config files
> during compile time (my SuSE 6.0 distr. doesn't seem to come w/
> slrnpull).
It's really not that difficult, (I don't use pre-packaged Slrn either).
If you like, I could send you the transcript of my own installation,
outlining what I've done here. I've had Slrnpull running for quite some
time, without any trouble. One caveat: I'm not using the latest version
of slrn/slrnpull, so if you intend to use that, you likely will need to
make some changes from my transcript, (like a patch I created at this
end is now in the distribution).
> Yes, I probably could make sense out of what I really do need and
> don't need and set it up and compile it, but if I wanted that much of
> a PITA, I would just go w/ inn+suck to start w/.
Trust me, slrnpull is a lot easier than Inn and Suck, (though I have to
admit I've never used Suck). If you feel at all like you could handle
Inn, Slrnpull should seem quite trivial. Of course if you prefer the Inn
route, by all means...
>> for GROUP in `sed 's/:.*$//' < $HOME/.newsrc`; do
>> touch /var/spool/news/interesting.groups/${GROUP}
>> done
> Uhh.., sorry, still relatively new here... not real handy w/ scripts
> in general yet, and not at all w/ sed and greps
That's ok, I'll try and explain it. First of all, that's in Bourne
syntax, (as opposed to csh syntax), so if you run it in a shell, it
should be a Bourne-compatible shell, (Bash seems to be the default on
all the Linux distributions I've seen, so that shouldn't be a problem
for you).
I don't know how much programming experience you might have at all, so
I'm going to try and assume you have very little, but you at least
understand loop control, (and that a for loop executes once for every
case that a condition is true -- in this case, once for every element in
a list, replacing the variable GROUP with the "current" list element).
The real part of the above code snippet is the sed command which says,
taking input from the file $HOME/.newsrc, ($HOME is an environment
variable which is set to your home directory), "on each input line,
substitute (s) starting from the first colon (:) character, followed by
any number of any characters (.*) until the end of the line ($) with
nothing." Sed, by default prints its output on "standard out", which
here will form the list of elements for the for loop.
In English, what that does is read your .newsrc file, (where your
newsreader keeps track of what articles you've read in which newsgroups;
Note for a stock slrn installation, you'll likely need to use .jnewsrc),
and print out just the list of newsgroups to which you're subscribed,
(I'm assuming your .newsrc file contains just the newsgroups to which
you subscribe, by the way -- check your slrn configuration to be sure).
What happens in the loop is that a file corresponding to each newsgroup
to which you're subscribed is "touched" in the interesting.groups
directory. That is, if the file exists, its "last modified" time stamp
is adjusted to the current time, and (more importantly) if the file
doesn't exist, it's created (as an empty file).
If you're at all curious, experiment with the above sed command, or even
the loop itself, but rather than touching a file, simply 'echo ${GROUP}'
so you can see the result of each pass through the loop.
> I was kinda trolling for some input from someone who might have the
> same problems, so as to narrow it down to a problem w/ a)leafnode, or
> b)slrn, before going for an all-out assault to fix it.
Well, I hope the fix doesn't need to involve much of an assault,
actually. What you're trying to do really isn't difficult, and software
really shouldn't make it difficult. If you download a current copy of
the Slrn distribution, and carefully read the accompanying
documentation, you should encounter no problems with Slrn and Slrnpull.
--
----------------------------------------------------------------------
Sylvain Robitaille syl@alcor.concordia.ca
Systems Manager Concordia University
Instructional & Information Technology Montreal, Quebec, Canada
----------------------------------------------------------------------
Technical Details
Message-ID:
<7dqenl$vjh$1@newsflash.concordia.ca>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-mailReferences:
<slrn7fj5g2.m21.mm43300@hellbilly.navix.net> <7dl5v7$280$1@newsflash.concordia.ca> <slrn7fsfi7.a4l.mm43300@hellbilly.navix.net>Show Full Headers
Complete Article Headers
Message-ID: <7dqenl$vjh$1@newsflash.concordia.ca> Subject: Re: slrn 0.9.5.2 + leafnode 1.7.1 Date: Tue, 30 Mar 1999 00:00:00 +0000 From: syl@alcor.concordia.ca (Sylvain Robitaille) References: <slrn7fj5g2.m21.mm43300@hellbilly.navix.net> <7dl5v7$280$1@newsflash.concordia.ca> <slrn7fsfi7.a4l.mm43300@hellbilly.navix.net> 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: 460726467 Organization: Concordia University -- Montreal, Quebec, Canada User-Agent: slrn/0.9.5.3 (UNIX) Newsgroups: news.software.readers NNTP-Posting-User: news