[vorbis-dev] piping vorbize's stdout/stderr
Monty
xiphmont at xiph.org
Mon Jul 31 13:56:42 PDT 2000
> Well, I guess we're both right to some extent. But unless I use a "\n",
> ---------cut----------
> open PIPE, "vorbize blahblahblah|";
> while (<PIPE>) {
> if (/(\d+\.\d\%)/) {
> $status{perc} = $1;
> }
> }
> close PIPE;
> ---------cut----------
>
> (in Perl) doesn't work.
You didn't mention Perl. On the Perl side, you also need:
$|=1;
Monty
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
More information about the Vorbis-dev
mailing list