Article View: news.software.nntp
Article #54562Re: piping via newsfeeds problem
From: Jeffrey M. Vinocur
Date: Sun, 07 Oct 2001 03:38
Date: Sun, 07 Oct 2001 03:38
45 lines
2315 bytes
2315 bytes
In article <87n134ryyq.fsf@erlenstar.demon.co.uk>, Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: >>>>>> "Jeffrey" == Jeffrey M Vinocur <jeff@litech.org> writes: > > >> test!:!*,unidata.hds\ > >> :Tc,Wn:\ > >> /opt/news/util/dataProdHandlers/retrieveArtAsProd > > >> /opt/news/test/sent.out > > Jeffrey> You realize that every time you process an article it will > Jeffrey> overwrite the previous result? > >Actually, it won't; the sent.out file will be clobbered every time the >channel command is respawned Oh, duh. I wasn't paying enough attention. (It registered that she's using a channel feed, but since I *just* wrote a script that required a program feed, I had that in mind anyway.) >My inclination, though, would be to have the channel program do all >the file manipulations Agreed, definitely. >(even if it's just a trivial script wrapper round the real >program). Especially since INN has to spawn a shell anyway to do the redirection, no? >My guess is that the problem is actually caused by failure to flush >the output _within_ the channel program (using ctlinnd won't help with >that). Hmm, makes sense. Question to the OP...in what language are you coding? -- Jeffrey M. Vinocur jeff@litech.org
Technical Details
Message-ID:
<9poinu$vfp$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!news.ems.psu.edu!news.litech.org!not-for-mailReferences:
<3BBDD092.D1CF35F8@unidata.ucar.edu> <9po0vm$mcc$1@marduk.litech.org> <87n134ryyq.fsf@erlenstar.demon.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <9poinu$vfp$1@marduk.litech.org> Subject: Re: piping via newsfeeds problem Date: Sun, 07 Oct 2001 03:38:38 +0000 From: jeff@litech.org (Jeffrey M. Vinocur) References: <3BBDD092.D1CF35F8@unidata.ucar.edu> <9po0vm$mcc$1@marduk.litech.org> <87n134ryyq.fsf@erlenstar.demon.co.uk> 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!news.ems.psu.edu!news.litech.org!not-for-mail Newsgroups: news.software.nntp Organization: Lithium Technologies Lines: 44 Sender: jeff@litech.org NNTP-Posting-Host: marduk.litech.org X-Trace: marduk.litech.org 1002425918 32249 128.84.154.54 (7 Oct 2001 03:38:38 GMT) X-Complaints-To: usenet@litech.org NNTP-Posting-Date: Sun, 7 Oct 2001 03:38:38 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: jeff@litech.org (Jeffrey M. Vinocur)