🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
8 messages
8 total messages Started by s2cuts Tue, 02 Dec 2008 10:59
Simple command line client to read news groups?
#79797
Author: s2cuts
Date: Tue, 02 Dec 2008 10:59
17 lines
1824 bytes
Hello all,

I'm not very familiar with news groups, but I am needing to write some 
very basic scripts to poll some news groups for headers and maybe even 
message bodies.  I need to get the data in some format so that I can use 
it in some simulation software I'm writing.  I don't need to piece 
together binary file segments or weed out duplicates.  I just need to 
poll the news groups I choose every so often (probably scheduled through 
cron), and then get a bulk dump of the news group's latest contents.

Does anyone have any advice on which software might suit me best?  Or 
maybe good tutorial for something like mutt?

BTW, we're talking linux.

Thanks for any suggestions,
d
Re: Simple command line client to read news groups?
#79800
Author: Black Dragon
Date: Tue, 02 Dec 2008 16:06
22 lines
1546 bytes
s2cuts wrote:

> Hello all,

> I'm not very familiar with news groups, but I am needing to write some 
> very basic scripts to poll some news groups for headers and maybe even 
> message bodies.  I need to get the data in some format so that I can use 
> it in some simulation software I'm writing.  I don't need to piece 
> together binary file segments or weed out duplicates.  I just need to 
> poll the news groups I choose every so often (probably scheduled through 
> cron), and then get a bulk dump of the news group's latest contents.

> Does anyone have any advice on which software might suit me best?

newsfetch

http://www.ibiblio.org/pub/Linux/system/news/readers

-- 
Black Dragon

He used to kiss her on her lips, but it's all over now.
Re: Simple command line client to read news groups?
#79808
Author: s2cuts
Date: Wed, 03 Dec 2008 06:53
35 lines
2328 bytes
On Tue, 02 Dec 2008 16:06:58 +0000, Black Dragon wrote:

> s2cuts wrote:
> 
>> Hello all,
> 
>> I'm not very familiar with news groups, but I am needing to write some
>> very basic scripts to poll some news groups for headers and maybe even
>> message bodies.  I need to get the data in some format so that I can
>> use it in some simulation software I'm writing.  I don't need to piece
>> together binary file segments or weed out duplicates.  I just need to
>> poll the news groups I choose every so often (probably scheduled
>> through cron), and then get a bulk dump of the news group's latest
>> contents.
> 
>> Does anyone have any advice on which software might suit me best?
> 
> newsfetch
> 
> http://www.ibiblio.org/pub/Linux/system/news/readers

Hey, thanks for the suggestion.  It looked really promising, however it 
isn't working at all.

[root@localhost ~]# newsfetch shawnews -l
Newsfetch V1.21 Yusuf Motiwala (yusuf@scientist.com)

Trying to connect shawnews...Connected
503 Program Error or Time Out

List of NewsGroups:
 Program Error or Time Out
[root@localhost ~]#          

It seems to be getting stuck immediately after connecting.
Re: Simple command line client to read news groups?
#79809
Author: s2cuts
Date: Wed, 03 Dec 2008 06:55
24 lines
2045 bytes
On Tue, 02 Dec 2008 10:59:15 +0000, s2cuts wrote:

> Hello all,
> 
> I'm not very familiar with news groups, but I am needing to write some
> very basic scripts to poll some news groups for headers and maybe even
> message bodies.  I need to get the data in some format so that I can use
> it in some simulation software I'm writing.  I don't need to piece
> together binary file segments or weed out duplicates.  I just need to
> poll the news groups I choose every so often (probably scheduled through
> cron), and then get a bulk dump of the news group's latest contents.
> 
> Does anyone have any advice on which software might suit me best?  Or
> maybe good tutorial for something like mutt?
> 
> BTW, we're talking linux.
> 
> Thanks for any suggestions,
> d

Does anyone else have any other suggestions?  Can someone maybe recommend 
a more main stream tool that would allow this type of functionality?

Thanks.
Re: Simple command line client to read news groups?
#79810
Author: Jeffrey M. Vinocur
Date: Wed, 03 Dec 2008 12:51
27 lines
2115 bytes
In article <Y3qZk.13883$b05.6180@newsfe06.iad>,
s2cuts  <david.spino@yahoo.ca> wrote:
>On Tue, 02 Dec 2008 10:59:15 +0000, s2cuts wrote:
>
>> I'm not very familiar with news groups, but I am needing to write some
>> very basic scripts to poll some news groups for headers and maybe even
>> message bodies.
>
>Does anyone else have any other suggestions?  Can someone maybe recommend 
>a more main stream tool that would allow this type of functionality?

Your options fall into to groups:

  - You can build the functionality you need into your scripts
    (for example, if you're using Perl, the Net::NNTP library
    would be very helpful).

  - You can have a separate program that will just download any
    new news to files in a directory, and then run your script on
    those files.  There are many of these programs with varying
    levels of sophistication (and quirkiness).  Some are newsx,
    suck, and the very simple "pullnews" that comes with INN (you
    don't need the rest of INN, just the one script).
    
-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Simple command line client to read news groups?
#79812
Author: s2cuts
Date: Wed, 03 Dec 2008 19:47
33 lines
2588 bytes
On Wed, 03 Dec 2008 12:51:52 +0000, Jeffrey M. Vinocur wrote:

> In article <Y3qZk.13883$b05.6180@newsfe06.iad>, s2cuts 
> <david.spino@yahoo.ca> wrote:
>>On Tue, 02 Dec 2008 10:59:15 +0000, s2cuts wrote:
>>
>>> I'm not very familiar with news groups, but I am needing to write some
>>> very basic scripts to poll some news groups for headers and maybe even
>>> message bodies.
>>
>>Does anyone else have any other suggestions?  Can someone maybe
>>recommend a more main stream tool that would allow this type of
>>functionality?
> 
> Your options fall into to groups:
> 
>   - You can build the functionality you need into your scripts
>     (for example, if you're using Perl, the Net::NNTP library would be
>     very helpful).
> 
>   - You can have a separate program that will just download any
>     new news to files in a directory, and then run your script on those
>     files.  There are many of these programs with varying levels of
>     sophistication (and quirkiness).  Some are newsx, suck, and the very
>     simple "pullnews" that comes with INN (you don't need the rest of
>     INN, just the one script).

Net::NNTP sounds like a great idea.  Full control over the process, as 
well as tighter integration with the other stuff I'm writing.  I see that 
there are a few other NNTP classes implemented too.  This will be the 
direction I go in.

Thank you Jeff.
Re: Simple command line client to read news groups?
#79813
Author: Julien ÉLIE
Date: Wed, 03 Dec 2008 20:18
21 lines
2145 bytes
Hi,

> Net::NNTP sounds like a great idea.  Full control over the process, as
> well as tighter integration with the other stuff I'm writing.  I see that
> there are a few other NNTP classes implemented too.  This will be the
> direction I go in.

As Jeff mentioned it, pullnews is written in Perl.
So if you are rewriting a tool, you can have a look at it to see how Net::NNTP
is implemented.

    http://inn.eyrie.org/viewcvs/trunk/frontends/pullnews.in?view=markup
    http://www.eyrie.org/~eagle/software/inn/docs/pullnews.html

-- 
Julien ÉLIE

« Combien de techniciens de Microsoft sont nécessaires pour
  changer une ampoule électrique brûlée ?
  Aucun, ils vont déclarer l'obscurité comme étant un nouveau standard. » 
Re: Simple command line client to read news groups?
#79826
Author: Black Dragon
Date: Thu, 04 Dec 2008 16:06
49 lines
2319 bytes
s2cuts wrote:

> On Tue, 02 Dec 2008 16:06:58 +0000, Black Dragon wrote:

>> s2cuts wrote:

>>> Hello all,

>>> I'm not very familiar with news groups, but I am needing to write some
>>> very basic scripts to poll some news groups for headers and maybe even
>>> message bodies.  I need to get the data in some format so that I can
>>> use it in some simulation software I'm writing.  I don't need to piece
>>> together binary file segments or weed out duplicates.  I just need to
>>> poll the news groups I choose every so often (probably scheduled
>>> through cron), and then get a bulk dump of the news group's latest
>>> contents.

>>> Does anyone have any advice on which software might suit me best?

>> newsfetch

>> http://www.ibiblio.org/pub/Linux/system/news/readers

> Hey, thanks for the suggestion.  It looked really promising, however it 
> isn't working at all.

> [root@localhost ~]# newsfetch shawnews -l
> Newsfetch V1.21 Yusuf Motiwala (yusuf@scientist.com)

> Trying to connect shawnews...Connected
> 503 Program Error or Time Out

> List of NewsGroups:
>  Program Error or Time Out
> [root@localhost ~]#          

> It seems to be getting stuck immediately after connecting.

Use the fully qualified domain name or ip address of the the news server 
you're trying to connect to. shawnews isn't a FQDN.

-- 
Black Dragon

Said a happy young man of Fort Drum:
"What care I for this shortage of gum?
	My favorite chew
	Is a condom or two,
With a goodly amount of fresh come."
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