Article View: news.software.nntp
Article #54456Re: Piping an article to a program via newsfeeds
From: Jeffrey M. Vinocur
Date: Mon, 01 Oct 2001 22:54
Date: Mon, 01 Oct 2001 22:54
40 lines
2107 bytes
2107 bytes
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.
Technical Details
Message-ID:
<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!lnsnews.lns.cornell.edu!news.litech.org!not-for-mailReferences:
<3BB646A2.8D7DC023@unidata.ucar.edu>Show Full Headers
Complete Article Headers
Message-ID: <9pas6c$bla$1@marduk.litech.org> Subject: Re: Piping an article to a program via newsfeeds Date: Mon, 01 Oct 2001 22:54:04 +0000 From: jeff@litech.org (Jeffrey M. Vinocur) References: <3BB646A2.8D7DC023@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!lnsnews.lns.cornell.edu!news.litech.org!not-for-mail Newsgroups: news.software.nntp Organization: Lithium Technologies Lines: 39 Sender: jeff@litech.org NNTP-Posting-Host: marduk.litech.org X-Trace: marduk.litech.org 1001976844 11946 128.84.154.54 (1 Oct 2001 22:54:04 GMT) X-Complaints-To: usenet@litech.org NNTP-Posting-Date: Mon, 1 Oct 2001 22:54:04 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: jeff@litech.org (Jeffrey M. Vinocur)