Thread View: news.software.readers
2 messages
2 total messages
Started by Alain Ninane - FYNU
Sun, 16 Jan 1994 11:54
Help - looking for an autosave news program
Author: Alain Ninane - FYNU
Date: Sun, 16 Jan 1994 11:54
Date: Sun, 16 Jan 1994 11:54
17 lines
1428 bytes
1428 bytes
Folks, I'm currently reading news with `rn' on my UNIX systems. Because news are not stored for a long time on my news feed, they disapear when I go in hollydays for say, longer than one week. What I would like to have is a program which allow me to automatically save news, e.g. every morning. I have tried to call `rn' from within a shell but that doesn't seem to work because `rn' is basically an interactive program. Any hints ? Thanks, Alain -- Dr. Alain H. Ninane | Tel : +32-10-47.32.32 - Fax: +32-10-45.21.83 University of Louvain | Internet: Ninane@fynu.ucl.ac.be Nuclear Physics Dept. | Ch. du Cyclotron, 2 B-1348 Louvain-la-Neuve | BELGIUM
Re: Help - looking for an autosave news program
Author: Steven King, Software Archaeolog...
Date: Mon, 17 Jan 1994 16:36
Date: Mon, 17 Jan 1994 16:36
43 lines
2631 bytes
2631 bytes
nina@fynu.ucl.ac.be (Alain Ninane - FYNU) publicly declared:
>I'm currently reading news with `rn' on my UNIX systems. Because
>news are not stored for a long time on my news feed, they disapear
>when I go in hollydays for say, longer than one week. What I would
>like to have is a program which allow me to automatically save
>news, e.g. every morning. I have tried to call `rn' from within
>a shell but that doesn't seem to work because `rn' is basically
>an interactive program.
This little script runs 'trn' to apply its KILL files non-interactively.
It was originally written for 'rn' and probably only needs minor changes
to be made to work with 'rn' again. Either that or search Archie for
the original, named "rnkill".
---=== 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 ===---
--
-------------------------------------------------------+-----------------------
broadcast msg from root: The universe is ending in | Steven King
five minutes. SAVE ALL FILES!! | Motorola Cellular
| king@rtsg.mot.com
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