🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
9 messages
9 total messages Started by Qing Yin Tue, 10 May 1994 22:45
How to change default file names in nn.
#5843
Author: Qing Yin
Date: Tue, 10 May 1994 22:45
12 lines
1053 bytes
When I issue `s' command to save an article, my nn gives a default
name which is the same as the newsgroup name except that all `.'
are replaced by `/'.  For example, articles in news.software.nn
would be saved to a default ~/News/"news/software.nn" file.

How did that happen?  How can I change that (I'm willing to re-install
nn if neccessary.)

--

Qing Vincent Yin
umyin@mctrf.mb.ca
Re: How to change default file names in nn.
#5838
Author: Trip Martin
Date: Wed, 11 May 1994 02:03
16 lines
1460 bytes
umyin@mctrf.mb.ca (Qing Yin) writes:

>When I issue `s' command to save an article, my nn gives a default
>name which is the same as the newsgroup name except that all `.'
>are replaced by `/'.  For example, articles in news.software.nn
>would be saved to a default ~/News/"news/software.nn" file.

>How did that happen?  How can I change that (I'm willing to re-install
>nn if neccessary.)

No need for re-install.  Look at the default-save-file variable in
the nn man page. 
-- 
Trip Martin
night@acm.rpi.edu
night%acm.rpi.edu@rpi.edu
Re: How to change default file names in nn.
#5840
Author: Jon R. Ives
Date: Wed, 11 May 1994 16:29
57 lines
3116 bytes
umyin@mctrf.mb.ca (Qing Yin) writes:

>When I issue `s' command to save an article, my nn gives a default
>name which is the same as the newsgroup name except that all `.'
>are replaced by `/'.  For example, articles in news.software.nn
>would be saved to a default ~/News/"news/software.nn" file.

>How did that happen?  How can I change that (I'm willing to re-install
>nn if neccessary.)

Qing:

I'm no expert, but here's what I use, based on a unix system:

You can specify a folder name for each group you subscribe to in your
~/.nn/init file.  In the .nn/init file in your home directory, you can
list the newsgroups make what's called  "Group resentation
Sequence."  It must start with the word "sequence" on a line by
itself, omitting quotes, of course.  Below the word "sequence," you
simply list the groups you subscribe to, in the order in which you
would like to have them displayed.  For each group listed, you have
the opportunity to specify a folder in which articles will be saved,
using the form illustrated below:

sequence
news.newusers.questions +newusers
news.software.nn +nn

The "+" is a shorthand expression for the directory you have
identified for saving news articles. (In my case, its /u1/jonives/News
where /u1/jonives is my home directory.  Thus, referring to the
illustrations above, any articles I saved from
news.newusers.questions will be found in /u1/jonives/News/newusers
and those saved from news.software.nn will be in /u1/jonives/News/nn

This is a lot neater than using the default directories, which quickly
become unwieldy.  

All this is described in great detail in the manual, which you get by
typing "man nn" at the system prompt, again w/o quotes.  The manual is
quite long - 96 pages.  The section you want is entitled "THE INIT
FILES," and it begins about page 83 in my manual.

Until you get your .nn/init file setup, a quick and dirty answer is to 
save articles as you have been doing, but when it gives the filename,
use your backspace key to wipe it out (leaving just 
the "+") and then enter a filename of you own choosing.  The beauty 
of the init file specification is that you don't have to remember any
filenames!

Hope this info helps!

Jon
-- 
Jon R. Ives                                   jonives@netcom.com
1102 Bristol Circle                           (214) 223-1869
DeSoto, Texas 75115-2818
Re: How to change default file names in nn.
#5841
Author: Qing Yin
Date: Thu, 12 May 1994 04:29
43 lines
2763 bytes
jonives@netcom.com (Jon R. Ives) writes:

 +umyin@mctrf.mb.ca (Qing Yin) writes:

 + > When I issue `s' command to save an article, my nn gives a default
 + > name which is the same as the newsgroup name except that all `.'
 + > are replaced by `/'.  For example, articles in news.software.nn
 + > would be saved to a default ~/News/"news/software/nn" file.

 +You can specify a folder name for each group you subscribe to in your
 +~/.nn/init file.  In the .nn/init file in your home directory, you can
 +list the newsgroups make what's called  "Group resentation
 +Sequence."  It must start with the word "sequence" on a line by
 +itself, omitting quotes, of course.  Below the word "sequence," you
 +simply list the groups you subscribe to, in the order in which you
 +would like to have them displayed.  For each group listed, you have
 +the opportunity to specify a folder in which articles will be saved,
 +using the form illustrated below:

 +sequence
 +news.newusers.questions +newusers
 +news.software.nn +nn

Thanks to jonives@netcom.com and Trip Martin who explained this.  But
there is a puzzle here:  I used to be on another UNIX system where they
have nn.  I didn't have a .nn/init file there, but the default file name
for each news group is the same as the group's name, i.e., all '.' are
still '.', not '/'.  I then installed nn on my own system and all '.' are
substitued by '/'.  I wonder if there is a system-wide configuration
to contol this.

 +Until you get your .nn/init file setup, a quick and dirty answer is to 
 +save articles as you have been doing, but when it gives the filename,
 +use your backspace key to wipe it out 

That is another problem I had.  The backspace key works fine if I dial 
in with a VT100 terminal.  But the backspace doesn't work at this point 
if I were to use Sun's openwin cmdtool on a workstation.  Is this a 
bug for cmdtool or nn?
--

Qing Vincent Yin
umyin@mctrf.mb.ca
Re: How to change default file names in nn.
#5845
Author: Milt Epstein
Date: Thu, 12 May 1994 16:50
23 lines
1819 bytes
In <2qsbbf$ej3@canopus.cc.umanitoba.ca> umyin@mctrf.mb.ca (Qing Yin) writes:

[ ... ]
>Thanks to jonives@netcom.com and Trip Martin who explained this.  But
>there is a puzzle here:  I used to be on another UNIX system where they
>have nn.  I didn't have a .nn/init file there, but the default file name
>for each news group is the same as the group's name, i.e., all '.' are
>still '.', not '/'.  I then installed nn on my own system and all '.' are
>substitued by '/'.  I wonder if there is a system-wide configuration
>to contol this.
[ ... ]

Yes there is the capability to do this, so some things may be set up
at the whims of the sysadmin (no offense intended :-).  I'm not sure
how to find out where the system-wide init file -- I'm not sure there
is a standard location.  On the system I use most, it's in
/usr/spool/nn/lib/init.

-- 
Milt Epstein
Department of Computer Science
University of Illinois
epstein@cs.uiuc.edu
Re: How to change default file names in nn.
#5853
Author: Michael Stoodt
Date: Fri, 13 May 1994 14:37
7 lines
1125 bytes
Someone in this thread should mention the man page, specifically the
variable default-save-file and the File Name Expansion section.

-- 
Michael A Stoodt  [MaS]      |        mumble mumble disclaimer mumble...
stoodt@cis.umassd.edu        | "Will the last person to leave the planet
Comp&InfoSci, UMassDartmouth |  please turn off the sun?" - Mike Resnick
Re: How to change default file names in nn.
#5854
Author: Qing Yin
Date: Fri, 13 May 1994 20:37
16 lines
1505 bytes
In <Cpp84J.A9D@sparc0a.cs.uiuc.edu> epstein@sparc8.cs.uiuc.edu (Milt Epstein) writes:

>Yes there is the capability to do this, so some things may be set up
>at the whims of the sysadmin (no offense intended :-).  I'm not sure
>how to find out where the system-wide init file -- I'm not sure there
>is a standard location.  On the system I use most, it's in
>/usr/spool/nn/lib/init.

Very, very well.  Thanks, thanks.  So I 'stole' the /usr/local/lib/nn/init
from the old system, and now it works great!  It has a line:
	set default-save-file +$G

--

Qing Vincent Yin
umyin@mctrf.mb.ca
Re: How to change default file names in nn.
#5859
Author: R. Stewart Ellis
Date: Mon, 16 May 1994 16:46
40 lines
2142 bytes
umyin@mctrf.mb.ca (Qing Yin) writes:

 >When I issue `s' command to save an article, my nn gives a default
 >name which is the same as the newsgroup name except that all `.'
 >are replaced by `/'.  For example, articles in news.software.nn
 >would be saved to a default ~/News/"news/software.nn" file.

This really is a hare-brained default.  Newsgroups which have deeper level
newsgroups beside them get real confused ( e.g. until recently there was a
comp.os.linux group and then a hierarchy under that.  You could not save any
articles in c.o.l if you already had a c.o.l.announce).

 >How did that happen?  How can I change that (I'm willing to re-install
 >nn if neccessary.)

You can change the behavior by resetting it in your own .nn/init file with
the following command:

set default-save-file +$G

This causes the c.o.l stuff to be saved in separate files:

c.o.l
c.o.l.announce
c.o.l.misc
etc.

You can also do this in the global file in your nn/lib called setup.  I
believe it would be a more sensible default.

 >--

 >Qing Vincent Yin
 >umyin@mctrf.mb.ca

-- 
  R.Stewart(Stew) Ellis, Assoc.Prof., (Off)313-762-9765   ___________________
  Humanities & Social Science,  GMI Eng.& Mgmt. Inst.    /   _____  ______ 
  Flint, MI 48504      ellis@nova.gmi.edu               /        / /  /  / /
  Gopher,chimera,nn,tin,jove,modems, free code is best!/________/ /  /  / /
Re: How to change default file names in nn.
#5862
Author: R. Stewart Ellis
Date: Mon, 16 May 1994 16:54
28 lines
1811 bytes
jonives@netcom.com (Jon R. Ives) writes:

 >umyin@mctrf.mb.ca (Qing Yin) writes:
[...]
 >Until you get your .nn/init file setup, a quick and dirty answer is to 
 >save articles as you have been doing, but when it gives the filename,
 >use your backspace key to wipe it out (leaving just 
 >the "+") and then enter a filename of you own choosing.  The beauty 

It is easier to type ^U to erase the whole line, then ^U again to erase the
alternate line.

 >of the init file specification is that you don't have to remember any
 >filenames!

 >Hope this info helps!

 >Jon
 >-- 
 >Jon R. Ives                                   jonives@netcom.com
 >1102 Bristol Circle                           (214) 223-1869
 >DeSoto, Texas 75115-2818

-- 
  R.Stewart(Stew) Ellis, Assoc.Prof., (Off)313-762-9765   ___________________
  Humanities & Social Science,  GMI Eng.& Mgmt. Inst.    /   _____  ______ 
  Flint, MI 48504      ellis@nova.gmi.edu               /        / /  /  / /
  Gopher,chimera,nn,tin,jove,modems, free code is best!/________/ /  /  / /
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