in reply to Capturing stats from sox

Oh! Here I thought you were asking about Sarbanes/Oxley, the happening thing in business these days.

The output is probably going to STDERR instead of STDOUT which is captured. Try these two ideas.

# Redirect output from STDERR to STDOUT $out = `sox ... 2>&1`
{ # Temporarily alias STDERR to STDOUT. local *STDERR = *STDOUT; $out = `sox blah.wav -e stat`; } print $out;

Replies are listed 'Best First'.
Re^2: Capturing stats from sox
by biosysadmin (Deacon) on Jul 29, 2004 at 07:03 UTC
    Oh! Here I thought you were asking about Sarbanes/Oxley, the happening thing in business these days.

    This is horribly unrelated, but I was ready to talk about using LWP to download baseball statistics.

Re^2: Capturing stats from sox
by jamesjyu (Acolyte) on Jul 28, 2004 at 20:45 UTC
    great! thanks!