🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #54471

Re: Piping an article to a program via newsfeeds

#54471
From: Anne Wilson
Date: Tue, 02 Oct 2001 17:33
57 lines
3018 bytes
"Jeffrey M. Vinocur" wrote:
> 
> In article <3BB646A2.8D7DC023@unidata.ucar.edu>,
> Anne Wilson  <anne@unidata.ucar.edu> wrote:
> >
> >I am trying to send an article to a program I wrote via an entry in the
> >newsfeeds file.  Being a newbie, it's not going the way I expected.
> >
> >The article is a binary file that I encoded for transmission.  The
> >program currently reads from stdin.
> 
> Do you want your program to be executed once for every article?
> if yes, you want a program feed.  If not, you want a channel
> feed.
> 
> >Second, I'm getting the idea that I must use the sm to actually get the
> >article.  Is there any other way?
> 
> No.
> 
> >       You need to translate wire formatted article when you
> >       use raw data, while sm does this.  Are you still need
> >       it?
> >
> >Does this mean that an article is reformatted in some way for
> >transmission?
> 
> I'm not sure about this.  But...
> 
> >Performance is an issue for me - I'd like to avoid the
> >overhead of invoking extra programs if possible.
> 
> What language are you using?
> 
> If it's C, I believe you can link against the INN libraries and
> do the sm() call yourself.


Jeffrey,

Thank you for responding.  I am writing in C - I'll incorporate the sm
call into my code.

But, it seems odd to me that innd would not be able to dump the raw
article.  Isn't it extra work to have to call the sm?  Isn't it innd's
job is to handle both incoming and outgoing feeds? 

Anne
-- 
***************************************************
Anne Wilson			UCAR Unidata Program		
anne@unidata.ucar.edu		       P.O. Box 3000
              			  Boulder, CO  80307
----------------------------------------------------
Unidata WWW server       http://www.unidata.ucar.edu/
****************************************************
Technical Details
Message-ID: <3BB9FA6D.F9D4090F@unidata.ucar.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!enews.sgi.com!nntp.wetware.com!attdv1!ip.att.net!frgp!ucar!not-for-mail
References: <3BB646A2.8D7DC023@unidata.ucar.edu> <9pas6c$bla$1@marduk.litech.org>

Show Full Headers
Complete Article Headers
Message-ID: <3BB9FA6D.F9D4090F@unidata.ucar.edu>
Subject: Re: Piping an article to a program via newsfeeds
Date: Tue, 02 Oct 2001 11:33:33 -0600
From: Anne Wilson <anne@unidata.ucar.edu>
References: <3BB646A2.8D7DC023@unidata.ucar.edu> <9pas6c$bla$1@marduk.litech.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!enews.sgi.com!nntp.wetware.com!attdv1!ip.att.net!frgp!ucar!not-for-mail
Newsgroups: news.software.nntp
Organization: UCAR
Lines: 56
NNTP-Posting-Host: imogene.unidata.ucar.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: news.ucar.edu 1002044014 417 128.117.140.28 (2 Oct 2001 17:33:34 GMT)
X-Complaints-To: news@news.ucar.edu
NNTP-Posting-Date: 2 Oct 2001 17:33:34 GMT
To: "Jeffrey M. Vinocur" <jeff@litech.org>
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2smp i686)
X-Accept-Language: en