Thread View: news.software.readers
2 messages
2 total messages
Started by Bill (AW) Pattee (ST3)
Sat, 27 Nov 1993 21:51
"An rn command line for autosaving news"
Author: Bill (AW) Pattee (ST3)
Date: Sat, 27 Nov 1993 21:51
Date: Sat, 27 Nov 1993 21:51
39 lines
2198 bytes
2198 bytes
Reply to: Poster
I am one who wants to save a few specific messages I know will be
listed when I run the unix rn command. What I want to execute
can be in the group KILL file but I have to type a
"y" "=" to have rn read the KILL file, and a
"q" to exit rn
I know how to
- save it all in one shot with (in rn) /<name>/w filename.
- and append all the files into one file etc.
I have read the "clearly described" manual [you bet]
Printed 7/10/88 LOCAL
RN(1) Pyramid OSx Operating System RN(1)
and have tried
command line "commands"
and inputs from a < file
[such as these and others]
rn -gmisc.news.east-europe.rferl << `"y" | "/Daily/:s rfe.tmp" | "q" | "q" | "q"
rn -gmisc.news.east-europe.rferl.y:.=:.c:.y:.q:.q ;
rn -gmisc.news.east-europe.rferl::!mybatchfile ;
rn -gmisc.news.east-europe.rferl < mybatchfile ;
I suspect it may be improper syntax ?!??!
The FAQs have not been a help and I cannot spend anymore of my time on
this if some unix guru out there has an answer.
------------------------------------------------------------------
Q1. Will someone volunteer a rn commandline for me?
Q2. If keyboard commands come from an input file, will you
give me an example of that file, (all lines of the file).
------------------------------------------------------------------
I cannot believe it's impossible.
Re: "An rn command line for autosaving news"
Author: Adri Verhoef
Date: Wed, 01 Dec 1993 17:26
Date: Wed, 01 Dec 1993 17:26
74 lines
2672 bytes
2672 bytes
Subject: Automagically downloading articles via rn
Keywords: rn, UNIX
You want something like this:
% auto-rn this.news.group
The following scripts will help you.
----- cut here ------ BEGIN ----- auto-rn
:
#ident "@(#)auto-rn 1.0 (a3) 15 aug 1992"
if [ $# != 1 ]
then
echo "$0: No newsgroup specified."
exit 1
fi
# If there are no unread articles, rn returns 0 exit status, else 1.
if rn -csq $1
then
echo "No news in group $1."
else
echo "Extracting news from group $1."
KILLGLOBAL=%p/AUTO-RN-KILL rn -M -q -T $1 <<eof
yqq
eof
fi
----- cut here ------ END ----- auto-rn
In the file 'News/AUTO-RN-KILL' (if %p = $HOME/News) you put the following:
----- cut here ------ BEGIN ----- News/AUTO-RN-KILL
/^/s %C:j
----- cut here ------ END ------- News/AUTO-RN-KILL
In this way, articles will be saved in directory $HOME/News, and the
name of the saved file will be that of the newsgroup (%C).
How does 'auto-rn' work?
1) It checks the newsgroup if there are any articles (work to do).
2) It starts 'rn' to read and save the specified newsgroup.
3) It saves each unread article of that newsgroup into the savefile.
4) It marks all read articles as "read" by "junking" each one.
5) It doesn't enter more than one newsgroup per run.
$HOME/News/AUTO-RN-KILL is in fact a rn "KILL" file.
rn -c : check for unread articles
rn -s : suppress initial listing of newsgroups
rn -q : suppress checking for new newsgroups
rn -M : save articles in mailbox format
rn -T : allow typeahead (i.c. "yqq")
Don't reformat the strings "yqq" and "eof" in the 'auto-rn' script.
"yqq" : 'y' for "yes, read this newsgroup"
'q' for "quit this newsgroup at the 'End of group...' prompt"
'q' to leave rn
Note that the following environment variable may come in handy for long
'Path:' headers:
MBOXSAVER=%X/mbox.saver %A %P %c %a %B %C "%b" "From X %`date -u`"
(sh-syntax)
Adri
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