🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #6442

Re: nn batch reading?

#6442
From: Gerald Oskoboiny
Date: Fri, 23 Sep 1994 19:46
58 lines
2563 bytes
datpete@daimi.aau.dk (Peter Andersen) writes:

:
>The idea should be to make a kill-file for autoselecting the articles, 
>and then have a cron job preiodically start nn and then read and store
>the selected articles on files (probably involving some macros in the init 
>file).
:
>Does anyone know if this is possible?

I've been doing this for a while, with pretty good results. (Except
for lately, because nn has been dumping core on me. But it happens
for interactive sessions as well...)

First, define an init file to select and save the articles.
Mine is like this:

   set flow-control false
   unset embedded-header-escape

   on entry talk.bizarre
   '=' "^" 'S' "~/collected/$N" '+'
   end

   sequence
   talk.bizarre

(I don't know if all that is necessary, but that works for me).

Next, I have a shell script called "collect_articles", which is here:

   #!/bin/sh

   /usr/local/bin/nnbatch -Iinit2 talk.bizarre 2>&1 > /dev/null
   /home/goskoboi/bin/sort_articles 2>&1 > /dev/null

This script is called from a cron job that looks like this:

   0 5 * * * /home/goskoboi/bin/collect_articles 2>/dev/null > /dev/null

This reads news for me at 5:00 a.m. daily.

You might not want to do the same thing: you could probably call nnbatch
directly from cron. I wanted to do some post-processing of the articles,
which is why I used the intermediate shell script.

My particular setup is configured to save the entire newsgroup, but you
could easily change it to use auto-selection with a killfile. Maybe:

   on entry comp.*
      'S' "+$G/$N" '+'
   end

The important part is using the `nnbatch' program instead of `nn' (it
took me while to figure that out), and the stuff in the init file.
Hope this helps,

Gerald
Technical Details
Message-ID: <35vbaf$ekk@scapa.cs.ualberta.ca>
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!bga.com!news.sprintlink.net!howland.reston.ans.net!swrinde!hookup!nntp.cs.ubc.ca!unixg.ubc.ca!quartz.ucs.ualberta.ca!alberta!gerald
References: <35jis6$je0@belfort.daimi.aau.dk>

Show Full Headers
Complete Article Headers
Message-ID: <35vbaf$ekk@scapa.cs.ualberta.ca>
Subject: Re: nn batch reading?
Date: Fri, 23 Sep 1994 19:46:23 +0000
From: gerald@amisk.cs.ualberta.ca (Gerald Oskoboiny)
References: <35jis6$je0@belfort.daimi.aau.dk>
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!bga.com!news.sprintlink.net!howland.reston.ans.net!swrinde!hookup!nntp.cs.ubc.ca!unixg.ubc.ca!quartz.ucs.ualberta.ca!alberta!gerald
Newsgroups: news.software.nn
Organization: University of Alberta
Lines: 58
Reply-To: gerald@amisk.cs.ualberta.ca
NNTP-Posting-Host: cab117.cs.ualberta.ca
Originator: gerald@cab117.cs.ualberta.ca