[vorbis-dev] piping vorbize's stdout/stderr
Peter Surda
psurda at byte.at
Mon Jul 31 21:12:53 PDT 2000
On Mon, Jul 31, 2000 at 07:21:11PM -0400, Kenneth C. Arnold wrote:
> On Mon, Jul 31, 2000 at 10:48:39PM +0200, Peter Surda wrote:
> > > > I want to pipe stdout/stderr from vorbize for wrapper scripts. But as it
> > > > doesn't send any "\n"s it doesn't work correctly. I solved it by adding
> > > That actually isn't guaranteed to work. The proper thing to do is
> > > fflush(stderr).
> Hmmm... I didn't get Monty's mail, but actually RTFM: stderr is non-buffered.
Well but when you redirect it to stdout...
But the flushing isn't that necessary.
> I'll make up a frontend interface mode if anybody wants it. What kind of
> format for the output would you want?
That would be very nice of you. I'd do the patch myself but I'm going on
holidays for a week so if you could do it in the meantime I'd be very happy.
The exact format isn't important, but it should
- provide enough important information
- be parsable (or parseable?) with a simple regexp
- have a "\n" at the end of a line.
E.g. such as "cdparanoia -e".
> Kenneth
Bye,
Peter Surda (Shurdeek) <surda at bigfoot.com>, ICQ 10236103, +4369910964300
--
The computer revolution is over. The computers won.
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
More information about the Vorbis-dev
mailing list