🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
8 messages
8 total messages Started by Guillaume Dargaud Tue, 15 Jan 2002 21:00
Retrieving usenet posts with unix commands ?
#56127
Author: Guillaume Dargaud
Date: Tue, 15 Jan 2002 21:00
17 lines
1849 bytes
How can I retrieve Usenet headers using Unix commands ?

No, I don't want to write a Spam email gatherer, I want to:
- learn how to use Usenet better
- write a simple statistics script (nb of posts per poster per time period...).

I don't want a whole program, just want to learn how to do it and I don't know where to start.
Can wget do this ?
--
Guillaume Dargaud
Colorado State University - Dept of Atmospheric Science
http://rome.atmos.colostate.edu/
  "Real Programmers don't play tennis, or any sport that requires you to change clothes. Mountain climbing is OK, and real
programmers always wear their climbing boots to work in case a mountain should suddenly spring up in the middle of a machine
m."    - From Real programmers don't write specs.

Re: Retrieving usenet posts with unix commands ?
#56128
Author: Jeffrey M. Vinocur
Date: Tue, 15 Jan 2002 21:09
12 lines
1337 bytes
In article <3c44981b@news.ColoState.EDU>,
Guillaume Dargaud <dargaud@sung3.ifsi.rm.cnr.it> wrote:
>How can I retrieve Usenet headers using Unix commands ?

Do you know Perl?  The best thing for this situation is to use an
existing module (Net::NNTP I think).


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Retrieving usenet posts with unix commands ?
#56131
Author: Guillaume Dargaud
Date: Wed, 16 Jan 2002 00:20
20 lines
1760 bytes
> >How can I retrieve Usenet headers using Unix commands ?
> 
> Do you know Perl?  The best thing for this situation is to use an
> existing module (Net::NNTP I think).

No...
I've managed to do almost everything I wanted using tin (retrieve messages, sort and filter them out...)
Now all I need is to post the results.
I tried:
cat results > tin -g newsserver -w alt.test

but it gets stuck...
-- 
Guillaume Dargaud
Colorado State University - Dept of Atmospheric Science
http://rome.atmos.colostate.edu/
  "If gravity warps space-time, do grave thoughts warp your mind ?" 


Re: Retrieving usenet posts with unix commands ?
#56130
Author: Jeffrey M. Vinocur
Date: Wed, 16 Jan 2002 01:01
27 lines
1755 bytes
In article <3c44c6f9@news.ColoState.EDU>,
Guillaume Dargaud <dargaud@sung3.ifsi.rm.cnr.it> wrote:
>
>I've managed to do almost everything I wanted using tin (retrieve
>messages, sort and filter them out...)
>Now all I need is to post the results.
>I tried:
>cat results > tin -g newsserver -w alt.test
>
>but it gets stuck...

I hope that you mean 

cat results | tin -g newsserver -w alt.test

right?

The place to ask about tin is news.software.readers, but if all
you want is to post an article you shouldn't have too much
trouble.  If there's an `inews` on your system that might work
for this purpose.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Retrieving usenet posts with unix commands ?
#56135
Author: Heiko Rupp
Date: Wed, 16 Jan 2002 09:31
15 lines
1358 bytes
Guillaume Dargaud wrote:

> How can I retrieve Usenet headers using Unix commands ?


telnet news.your.provider.net nntp

and issue nntp commands there.
See RFC 977 for nntp commands.

-- 
Heiko W. Rupp                       http://www.pilhuhn.de/hwr/
Usenet over IP Multicast:           http://mcntp.sf.net/

Re: Retrieving usenet posts with unix commands ?
#56145
Author: Harry Putnam
Date: Thu, 17 Jan 2002 04:13
19 lines
1780 bytes
"Guillaume Dargaud" <dargaud@sung3.ifsi.rm.cnr.it> writes:

> How can I retrieve Usenet headers using Unix commands ?
>
> No, I don't want to write a Spam email gatherer, I want to: 
> - learn how to use Usenet better 
> - write a simple statistics script (nb of posts per poster per
>  time period...).

> I don't want a whole program, just want to learn how to do it and I
> don't know where to start.  Can wget do this ?

Not sure about wget, but I guess you meant you didn't want a whole
news program.  So if you mean some kind of program is ok, then `suck'
may be what you wnat.  I think it can grab just headers (not really
sure) but it is a very simple easy and straight forward (well
documented) way to grab an nntp feed and print it to stdout where you
can do anything you want with it.
Re: Retrieving usenet posts with unix commands ?
#56162
Author: Guillaume Dargaud
Date: Thu, 17 Jan 2002 20:36
32 lines
2321 bytes
> >I've managed to do almost everything I wanted using tin (retrieve
> >messages, sort and filter them out...)
> >Now all I need is to post the results.
> >I tried:
> >cat results > tin -g newsserver -w alt.test
> >
> >but it gets stuck...
>
> I hope that you mean
>
> cat results | tin -g newsserver -w alt.test
>
> right?
Yes, absolutely...  ;-)
Anyway, it just seems to hang when I issue this command.

> The place to ask about tin is news.software.readers, but if all
> you want is to post an article you shouldn't have too much
> trouble.  If there's an `inews` on your system that might work
> for this purpose.
Yes, I do have inews, and I understand that with it I could do
cat results | mailx -s "Subject" alt.test

But when I tried I got: user unknown. How do I force it to use inews ?
--
Guillaume Dargaud
Colorado State University - Dept of Atmospheric Science
http://rome.atmos.colostate.edu/
  "Join in the new game that's sweeping the country. It's called "Bureaucracy". Everybody stands in a circle. The first person to do
anything loses."

Re: Retrieving usenet posts with unix commands ?
#56164
Author: Jeffrey M. Vinocur
Date: Thu, 17 Jan 2002 23:08
24 lines
1766 bytes
In article <3c47359d@news.ColoState.EDU>,
Guillaume Dargaud <dargaud@sung3.ifsi.rm.cnr.it> wrote:
>>
>> cat results | tin -g newsserver -w alt.test
>
>Anyway, it just seems to hang when I issue this command.

No idea, again you'd have to ask in a tin forum.


>> If there's an `inews` on your system that might work
>> for this purpose.
>Yes, I do have inews, and I understand that with it I could do
>cat results | mailx -s "Subject" alt.test
>
>But when I tried I got: user unknown. How do I force it to use inews ?

Why are you using mailx?  mailx should not be involved at all.  


-- 
Jeffrey M. Vinocur
jeff@litech.org
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