[comp.unix.questions] journaling news articles...

emv@ox.com (Ed Vielmetti) (03/20/91)

In article <1991Mar20.034216.28116@news.iastate.edu> spam@iastate.edu (Begley Michael L) writes:

   Anyway, my question is: "What am I doing wrong?"  My ultimate goal is to
   have a shell script called something like groupread (rather orwellian) that
   I would use like this:

   groupread news.group > file

   where file would contain all the unread atricles in news.group.

if you ftp "dynafeed" from uunet, i.e
	uunet.uu.net:/ClariNet/dynafeed.tar.Z
and compile up the "feed" program in it, create a .newsrc file with
something like
	grep net.blurfl ~/.newsrc >.newsrc-blurfl
and then run feed like so
	feed -listmode newsrc=.newsrc-blurfl command="cat" > file
it'll do more or less what you want.  Read the man pages of course
before you do this.

followups to news.software.b....

-- 
 Msen	Edward Vielmetti
/|---	moderator, comp.archives
	emv@msen.com

spam@iastate.edu (Begley Michael L) (03/20/91)

I need to be able to concatenate all articles in a news group into a
single file so I can mail it to someone without netnews.  I tried piping
commands into rn from a file, but it got wedged after the first command.
(for experimentation purposes, I just used the commands that would read the
first message out of the first newsgroup, then quit out of rn.  The file
'command' looked like this:

y
q
q
q

I tried running it with:
cat command | rn

and

rn < command

both processes hung and I had to kill them from another shell.

Anyway, my question is: "What am I doing wrong?"  My ultimate goal is to
have a shell script called something like groupread (rather orwellian) that
I would use like this:

groupread news.group > file

where file would contain all the unread atricles in news.group.

Thanks a lot...

-mike begley
spam@iastate.edu

-- 

jik@athena.mit.edu (Jonathan I. Kamens) (03/20/91)

  I suspect this would be more appropriate in news.announce.newusers, since it
is specifically a news-related question, but what the heck....

  The reason your first attempt failed is that rn flushes typeahead by
default.  Therefore, it saw the initial 'y' command, but then flushed the
three 'q' commands.

  You can get around this by running rn with the "-T" option, which (according
to the rn(1) man page) "allows you to type ahead of rn."  You might also want
to use the "-s" and "-t" options to suppress the initial list of groups
with unread news and to put rn into terse mode.

-- 
Jonathan Kamens			              USnail:
MIT Project Athena				11 Ashford Terrace
jik@Athena.MIT.EDU				Allston, MA  02134
Office: 617-253-8085			      Home: 617-782-0710