Article View: news.software.readers
Article #2031Re: Automatic saving of newsgroups?
From: Mathias Koerber
Date: Wed, 19 Aug 1992 09:17
Date: Wed, 19 Aug 1992 09:17
54 lines
2854 bytes
2854 bytes
In article <Bt08M4.G6M@rivm.nl> a3@rivm.nl (Adri Verhoef) writes:
| It seemed to me that one should be able to do this without too much
| trouble, given various options to rn, so I pulled out my trusty printed
| man page for rn and....
|
| Ok, sounds like you want to:
| 1) check a newsgroup to see if it has articles
| 2) start up rn to go to that specific newsgroup
| 3) save every unread article in the group
| 4) mark it as read (junk it)
| 5) exit cleanly without entering any other groups
|
| The following script plus the appropriate KILL file can do this,
| assuming you are in UNIX (you *are* running rn). I tried it, it
| worked fine. First the script, then some explanations.
|
| -----rn.script (snip,snip,snip)--------------
| #! /bin/csh
|
| if !($#argv == 1) then
| echo 'No newsgroup specified'
| exit
| endif
|
| if !( { rn -csq $1 } ) then
| echo Extracting news from group $1.
| rn -q -T -N $1 <<eof
| yqq
| eof
| else
| echo No news in group $1.
| endif
| ---------------end---------------------
|
| Make the script executable (chmod +x rn.script)
|
| Make a kill file in your directory for each newsgroup you will be
| checking. For instance, for group news.software.readers, it's
| *likely* to be ~/News/news/software/readers/ by default (but you
| can change that: RTFM!). In this directory, create the file 'KILL'
| with the line
|[...]
But it doesn't work with trn, sigh. trn opens /dev/tty unless the -c option is given. And then
it dies, cause /dev/tty cannot be opened from cron :-(
----
Mathias Koerber | Tel: +49/89/636-45685 | Mathias.Koerber@sniap.mchp.sni.de
SNI AP 114 | Fax: +49/89/636-45860 | koerber.muc@sni.de
MchP/LZ Rm:L1562 | X.400: C=DE/A=DBP/P=SNI-SMTP/O=de/OU1=sni/OU2=mchp/
Carl-Wery-Str. 22 | OU3=sniap/S=Koerber/G=Mathias
D-8000 Muenchen 83 | X.400: C=DE/A=DBP/P=SNI/O=SIEMENS NIXDORF/OU1=MUENCHEN/
(United!) Germany | OU2=P4/OU3=D5/OU4=AP11/S=KOERBER/G=MATHIAS
* Eifersucht ist eine Leidenschaft, die mit Eifer sucht was Leiden schafft *
Technical Details
Message-ID:
<1992Aug19.091736.22395@sniap.mchp.sni.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!pipex!unipalm!uknet!mcsun!Germany.EU.net!murignis!ap542!D012S411!koerberReferences:
<1992Aug6.164437.29915@mahendo.jpl.nasa.gov> <1992Aug11.052032.6626@anl433.uucp> <Bt08M4.G6M@rivm.nl>Show Full Headers
Complete Article Headers
Message-ID: <1992Aug19.091736.22395@sniap.mchp.sni.de> Subject: Re: Automatic saving of newsgroups? Date: Wed, 19 Aug 1992 09:17:36 +0000 From: Mathias.Koerber@sniap.mchp.sni.de (Mathias Koerber) References: <1992Aug6.164437.29915@mahendo.jpl.nasa.gov> <1992Aug11.052032.6626@anl433.uucp> <Bt08M4.G6M@rivm.nl> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!pipex!unipalm!uknet!mcsun!Germany.EU.net!murignis!ap542!D012S411!koerber Newsgroups: news.software.readers Sender: news@sniap.mchp.sni.de (News Admin) Organization: Siemens-Nixdorf AG Lines: 54