Thread View: news.software.readers
2 messages
2 total messages
Started by Bob Snyder
Wed, 23 Sep 1992 02:33
rn kill in background script?
Author: Bob Snyder
Date: Wed, 23 Sep 1992 02:33
Date: Wed, 23 Sep 1992 02:33
11 lines
1149 bytes
1149 bytes
I remeber seeing someone post quite a while back a script that would cause rn to go through and automatically kill articles for you. I had a copy, and trashed it after changing accounts and getting rid of my kill files. Now that 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..... Bob -- Bob Snyder, Computing Services, GE Aerospace, Advanced Technology Labs rsnyder@atl.ge.com, (609) 866-6672, FAX: (609) 866-6397, DialComm 8*777-6672
Re: rn kill in background script?
Author: 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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads