🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #14730

Re: Need UNIX command-line newsreader

#14730
From: John Savage
Date: Thu, 19 Jan 1995 07:07
47 lines
3165 bytes
On 3 Jan 1995, niclas@entek.chalmers.se (Niclas Mattsson) wrote:

>I need a newsreader (actually 'newsdownloader') which will download the
>articles from a given newsgroup and store them in a file. Example:
>
>getnews -group alt.test -first 11000 -last 11300 > outfile
>
>which stores articles 11000-11300 of alt.test in outfile.

I think it should be possible to do this with the kill file idea in
rn/trn, but I have not tried it, and anyway rn is too cantankerous to
reliably loop through a given block of articles without crashing.

If you have the tin newsreader on your Unix system, then it is admirably
suited to batch mode saving of news articles, though my use of it is not
a shining example of disk operation efficiency. The basic command is

tin -c -m /tmp/nm -f .newsrc.1

where .newsrc.1 is a file containing one or more lines of the form:-

news.newusers.questions: 1-2345

This stores each available article from 2346 upwards as an individual file
in the directory /tmp/nm/news/newusers/questions, then I cat * >> bigfile,
zip it up, and delete all the article files.

If you particularly desired only some of the available articles, say
2346-2379, then try altering the above example and see what happens, e.g.,

news.newusers.questions: 1-2345,2380-9999

Use of the /tmp directory is recommended so that you encounter none of the
constraints on disk space which are likely when using your home directory,
as the unpacked file size when saving USENET news might turn out to be large.

If you'd like the shell script I use to accomplish this, then mail me.
                                                      __       __
         :--_-_-_--.  _____________________________  {  \_____/  }  __________
         | (_|_|_) |                                 {           }
      .  |  (_|_)  |                                 '~. `[ ]` .~'  Australia,
  _--_|\ |---------'      John Savage (visitor)        (.__=-- )    beautiful
 /      \|  Sydney       guest account courtesy:      _/ ~~~~~ \_   one day -
 \_.--._/^   2000         Macquarie  University      (w         w)  perfect
       v   OLYMPICS        Sydney    Australia        (         )   the next.
                                                       \__ _ __/
===========internet: johns@macadam.mpce.mq.edu.au=====  \_) (_/  =============
Technical Details
Message-ID: <3fl334$qn5@sunb.ocs.mq.edu.au>
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!nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!udel!news.mathworks.com!news.alpha.net!uwm.edu!msunews!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!sunb.ocs.mq.edu.au!macadam.mpce.mq.edu.au!johns
References: <3eblh2$qia@nyheter.chalmers.se>

Show Full Headers
Complete Article Headers
Message-ID: <3fl334$qn5@sunb.ocs.mq.edu.au>
Subject: Re: Need UNIX command-line newsreader
Date: Thu, 19 Jan 1995 07:07:16 +0000
From: johns@macadam.mpce.mq.edu.au (John Savage)
References: <3eblh2$qia@nyheter.chalmers.se>
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!nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!udel!news.mathworks.com!news.alpha.net!uwm.edu!msunews!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!sunb.ocs.mq.edu.au!macadam.mpce.mq.edu.au!johns
Newsgroups: news.software.readers
Organization: Macquarie University
Lines: 47
NNTP-Posting-Host: macadam.mpce.mq.edu.au