Thread View: news.software.nn
3 messages
3 total messages
Started by Danno McKinnon
Thu, 23 May 1991 08:12
Setting variables on the command line
Author: Danno McKinnon
Date: Thu, 23 May 1991 08:12
Date: Thu, 23 May 1991 08:12
29 lines
1879 bytes
1879 bytes
I'm trying to set variables on the command line as outlined in
the manual. My main concern is the setting of the newsrc
variable, because our plan is to only read certain articles
(based on a search of a keyword database, details of which will
be posted here after we present to our programming class...)
The command line, as I thought it was supposed to be, looks
like:
nn -B -d -m -N keep-unsubscribed=off tidy-newsrc=on \
newsrc=n
where `n' might be a file containing only:
rec.arts.movies: 1-500, 525-999999
Our intention in this example would be to read articles 501-524.
When I use the shown command, `set all' shows that the variables
=are= set properly, but it doesn't seem to actually use `n' as
the newsrc---I get all of the groups that my regular .newsrc has
in it!
Am I missing some variables that I need to set to get the
behavior I want? It's very frustrating to see what I want
=almost= happen...
--
A || Daniel McKinnon || "Sugar and caffeine
Walt Disney || ==================-------------------- || make me very happy."
DANNO || dfm@dartmouth.edu || -- David Lynch
Re: Setting variables on the command line
Author: Ray Davis
Date: Thu, 23 May 1991 18:53
Date: Thu, 23 May 1991 18:53
12 lines
1064 bytes
1064 bytes
danno@eleazar.dartmouth.edu (Danno McKinnon) writes: > nn -B -d -m -N keep-unsubscribed=off tidy-newsrc=on \ > newsrc=n >the newsrc---I get all of the groups that my regular .newsrc has Have you tried setting newsrc to a full pathname, rather than just n? I haven't - but it's a thought anyway... Ray
Re: Setting variables on the command line
Author: Danno McKinnon
Date: Sun, 26 May 1991 21:50
Date: Sun, 26 May 1991 21:50
34 lines
2285 bytes
2285 bytes
rdavis@convex.com (Ray Davis) replies to my question:
>danno@eleazar.dartmouth.edu (Danno McKinnon) writes:
>> nn -B -d -m -N keep-unsubscribed=off tidy-newsrc=on \
>> newsrc=n
>>the newsrc---I get all of the groups that my regular .newsrc has
>Have you tried setting newsrc to a full pathname, rather than just n?
>I haven't - but it's a thought anyway...
Yes, we tried, but it was no help. We still find that ``:set''
shows that newsrc was set to whatever file we specified, but nn
ignores that value and reads .newsrc. We know we are
constructing a valid .newsrc because if we move it to be
~/.newsrc, it gets used. Our problem is the same whether the
path we specify is ``/tmp/<something>'' or ``~/<something>''...
If we can't figure out what's wrong, we'll just have to do the
very unsocial thing of renaming the caller's .newsrc to
something else, and putting our own in its place.
Note: Kim Storm very helpfully pointed out that we would
probably need to set ``new-group-action=0'' as well, which
elminated one of our errors! Another person suggested we might
need to set a whole presentation sequence, which we don't,
actually; that would make the command line rather messy...
Any suggestions welcome, as always.--
A || Daniel McKinnon || "Sugar and caffeine
Walt Disney || ==================-------------------- || make me very happy."
DANNO || dfm@dartmouth.edu || -- David Lynch
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