🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #9833

Re: Cron-able news saver?

#9833
From: Steven King, Software Archaeolog...
Date: Tue, 05 Jul 1994 16:28
40 lines
2700 bytes
pejanes@undergrad.math.uwaterloo.ca (Peter Janes) publicly declared:
>I'm trying to automatically save particular articles from newsgroups.
>Originally it appeared 'trn' plus a script file to run it would work; it
>turns out that 'trn' doesn't run correctly without a tty.  (I've tried using
>'expect' to provide a pty with no luck.)  'slurp' was suggested, but as far
>as I can tell, it has no selection facility--it just sucks up all the
>articles in the newsgroup it's pointed at.

Try running the following script from cron, which will throw trn into
batch mode to process your KILL files.  Just put the appropriate
commands in the KILL files and all will be right with the world.

---=== Cut Here ===--- ---=== Cut Here ===--- ---=== 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 ===--- ---=== Cut Here ===--- ---=== Cut Here ===---

-- 
----------------------------------------------<Steven King, king@cig.mot.com>--
Nothing is more conducive to peace of mind than not having any opinions at all.
                                      (Georg Christoph Lichtenberg [1742-1799])
Technical Details
Message-ID: <2vc1nq$hl1@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!bga.com!news.sprintlink.net!hookup!nntp.cs.ubc.ca!newsxfer.itd.umich.edu!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!ws41.cnusc.fr!ciril.fr!muller!julienas!EU.net!uunet!ftpbox!mothost!delphinium.cig.mot.com!wildebeest!king
References: <CsFw0r.MLo@undergrad.math.uwaterloo.ca>

Show Full Headers
Complete Article Headers
Message-ID: <2vc1nq$hl1@delphinium.cig.mot.com>
Subject: Re: Cron-able news saver?
Date: Tue, 05 Jul 1994 16:28:42 +0000
From: king@wildebeest.cig.mot.com (Steven King, Software Archaeologist)
References: <CsFw0r.MLo@undergrad.math.uwaterloo.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.readers.mbox.zip!bga.com!news.sprintlink.net!hookup!nntp.cs.ubc.ca!newsxfer.itd.umich.edu!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!ws41.cnusc.fr!ciril.fr!muller!julienas!EU.net!uunet!ftpbox!mothost!delphinium.cig.mot.com!wildebeest!king
Newsgroups: news.software.readers
Organization: Cellular Infrastructure Group, Motorola
Lines: 40
Reply-To: king@kodiak.cig.mot.com
NNTP-Posting-Host: wildebeest.rtsg.mot.com