🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #2151

Batch-mode for `nn' available?

#2151
From: Ernst Boetsch
Date: Fri, 11 Oct 1991 16:38
38 lines
2193 bytes
Hello *,

first, I like `nn' very much.

The only thing I miss is a batch-mode (perhaps I just did not find the
appropriate variable or option in the nn-man-page):
I want to say `nn -batch GROUP' and `nn' shall only print the Subject:
header of the presently unread or leave-next articles in the group
`GROUP' and then exit.
`nn' shall do nothing or print a "No News" message (depending on the
`-Q' option) if there are no such articles.
`nn' shall not print the welcome screen if a user did not use `nn'
before.

Background: I have a local news group to inform the users about
important events.
Now I want to place a `nn -Q -batch EVENT-GROUP' in the `.profile' or
`.login' of the default user environment.
It is important, that `nn' does not enter the interactive (curses) mode
because:
 - At that time the terminal setting may not be valid (the users
   may telnet from a PC and, therefore, have `$TERM=network').
 - At that time I do not want to force the users to read the news.
 - Since `nn -Q -batch EVENT-GROUP' will be part of the default user
   environment it may be too difficult for new users to use `nn' (most
   of our users do not belong to the computer sciences department).

Thanks in advance
Regards
	Ernst Boetsch


Ernst Boetsch,		    Leibniz-Rechenzentrum
		 der Bayerischen Akademie der Wissenschaften
	      Barer Strasse 21,  D-8000 Muenchen 2,  Germany
boetsch@lrz.lrz-muenchen.dbp.de       Tel.: +49 89 2105 7480
boetsch%lrz.lrz-muenchen.dbp.de @ {relay.cs.net, unido.uucp}
Technical Details
Message-ID: <a2822ab.687199136@sunserver>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!ira.uka.de!fauern!NewsServ!sunserver!a2822ab

Show Full Headers
Complete Article Headers
Message-ID: <a2822ab.687199136@sunserver>
Subject: Batch-mode for `nn' available?
Date: Fri, 11 Oct 1991 16:38:56 +0000
From: Boetsch@LRZ.LRZ-Muenchen.DBP.DE (Ernst Boetsch)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!ira.uka.de!fauern!NewsServ!sunserver!a2822ab
Newsgroups: news.software.nn
Sender: news@Informatik.TU-Muenchen.DE (News System)
Reply-To: boetsch@lrz.lrz-muenchen.dbp.de
Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
Lines: 38