🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #2382

Re: Repost: Getting news via cron.

#2382
From: Steven King, Software Archaeolog...
Date: Mon, 24 Jan 1994 16:29
43 lines
2605 bytes
zusman_lloyd@jpmorgan.com (Lloyd Zusman) publicly declared:
>I would like to fire off some sort of program via cron once or twice a
>day which will scan a list of specified newsgroups and store all the
>new articles in some sort of disk file(s).
>
>[snip]
>
>I'm not sure if I can use {t,r}rn for this purpose, and if not, does
>anyone have any other suggestions?

Here's a little script I pulled off the net a while ago.  It runs trn
in batch mode to process your KILL files without benefit of human
interaction.  Set your KILL files to do the filtering and saving you
want, then fire this off with cron...

---=== Cut Here ===---
#!/bin/sh
# trnkill - shell script to apply trn KILL files in the background
# 14 Mar 89  created by Jim Olsen <olsen@XN.LL.MIT.EDU>
# 10 Sep 93  modified for trn 3 (or 2) by Wayne Davison <davison@borland.com>
# Options: -d	debug mode -- you see all gory action as it happens.

# Visit all newsgroups (if trn asks about anything else, just say no)
export TRNINIT TRNMACRO RNMACRO
TRNINIT='-q -s -T -t -x +X'
TRNMACRO=/tmp/trnkill$$
# support for trn 2.x
RNMACRO=$TRNMACRO
trap 'rm -f $TRNMACRO; exit' 1 2 3 15
echo "z %(%m=[nf]?.q^M:n)^(z^)" > $TRNMACRO
if test X$1 = X-d; then
	echo "z" | trn
else
	echo "z" | trn >/dev/null 2>&1
fi
rm -f $TRNMACRO
exit 0
---=== Cut Here ===---
-- 
-------------------------------------------------------+-----------------------
Space is big.  Space is dark.                          |      Steven King
It's hard to find.  A place to park.                   |   Motorola Cellular
Burma Shave.                                           |   king@rtsg.mot.com
Technical Details
Message-ID: <2i0t0c$f1e@delphinium.cig.mot.com>
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!gmd.de!xlink.net!rz.uni-karlsruhe.de!news.uni-ulm.de!zib-berlin.de!zrz.TU-Berlin.DE!netmbx.de!Germany.EU.net!EU.net!uunet!ftpbox!mothost!delphinium.cig.mot.com!wildebeest!king
References: <ZUSMAN_LLOYD.94Jan21123629@jpmorgan.lsi-archive.jpmorgan.com>

Show Full Headers
Complete Article Headers
Message-ID: <2i0t0c$f1e@delphinium.cig.mot.com>
Subject: Re: Repost: Getting news via cron.
Date: Mon, 24 Jan 1994 16:29:00 +0000
From: king@wildebeest.cig.mot.com (Steven King, Software Archaeologist)
References: <ZUSMAN_LLOYD.94Jan21123629@jpmorgan.lsi-archive.jpmorgan.com>
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!gmd.de!xlink.net!rz.uni-karlsruhe.de!news.uni-ulm.de!zib-berlin.de!zrz.TU-Berlin.DE!netmbx.de!Germany.EU.net!EU.net!uunet!ftpbox!mothost!delphinium.cig.mot.com!wildebeest!king
Newsgroups: news.software.readers,news.software.nntp
Organization: Motorola Cellular Infrastructure Group
Lines: 43
Distribution: inet
Reply-To: king@wildebeest.cig.mot.com
NNTP-Posting-Host: wildebeest.rtsg.mot.com