Article View: news.software.readers
Article #2232Re: rn kill in background script?
From: Sridhar Venkataraman
Date: Wed, 23 Sep 1992 14:46
Date: Wed, 23 Sep 1992 14:46
44 lines
2177 bytes
2177 bytes
rsnyder@atl.ge.com (Bob Snyder) writes:
)zuma is on the net, I find I need kill files once again.....
)
)If someone could either post it or send it to me, I'd appreciate it.....
This appeared 2 days back on news.newusers.questions... It works on trn 4.4.2.
A minor caveat: This relies on seeing the default [qnp] on reaching
the End of Newsgroups prompt. But since ?rn updates the active file
if some specific time has passed (I tried to RTFM for it but failed to
come up with any reference to it) you will end up doing a second pass
(since the End of Newsgroups default would be [npq] if there are
unread articles) and probably more if rn is slooooow on your system.
BTW, our setup is an NNTP one. (Ensure that RNINIT has +x and +X if
you have trn just to make sure even if someone made a mess of the
configuration.)
#!/bin/sh
# (if these # comments bother your system, strip them out)
#
# rnkill - shell script to apply rn KILL files in background
# Jim Olsen - 14 Mar 89 (olsen@XN.LL.MIT.EDU)
#
# Options: -d debug mode. You see all gory action as it happens.
# Visit all newsgroups (if rn asks about anything else, just say no)
PATH=/bin:${PATH}
export RNMACRO RNINIT TERM
TERM=dumb
RNINIT='-s -T -t'
RNMACRO=/tmp/rnkill$$
trap 'rm -f $RNMACRO; exit' 1 2 3 15
echo "z %(%m=n?.q^M:n)^(z^)" > $RNMACRO
if test X$1 = X-d; then
echo "z" | rn
else
echo "z" | rn >/dev/null 2>&1
fi
rm $RNMACRO
exit 0
)Bob
Sridhar.
Technical Details
Message-ID:
<1992Sep23.144617.17343@ennews.eas.asu.edu>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!sun-barr!cs.utexas.edu!asuvax!ennews!enuxhb.eas.asu.edu!sridharReferences:
<1992Sep23.023351.25882@puma.ATL.GE.COM>Show Full Headers
Complete Article Headers
Message-ID: <1992Sep23.144617.17343@ennews.eas.asu.edu> Subject: Re: rn kill in background script? Date: Wed, 23 Sep 1992 14:46:17 GMT From: sridhar@enuxhb.eas.asu.edu (Sridhar Venkataraman) References: <1992Sep23.023351.25882@puma.ATL.GE.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!sparky!uunet!sun-barr!cs.utexas.edu!asuvax!ennews!enuxhb.eas.asu.edu!sridhar Newsgroups: news.software.readers Sender: news@ennews.eas.asu.edu (USENET News System) Organization: Arizona State University, Tempe AZ Lines: 44