daniels Asked: 2012-01-17 15:15:38 +0800 CST2012-01-17 15:15:38 +0800 CST 2012-01-17 15:15:38 +0800 CST Is there a way to redirect the output of pv command to a file? 772 I need to redirect the output of pv command to a file so i get read it's progress from another process. Or is it any other way i could do that? bash pv 1 Answers Voted Best Answer Mark Wagner 2012-01-17T15:37:29+08:002012-01-17T15:37:29+08:00 The progress info goes to standard error so have you tried a | pv ... -f 2> /tmp/out | b? Otherwise an adaptation of the more complicated example from the man page may be used: ( a | pv ... -f | b ) > /tmp/out 2>&1 Stdio buffering may present a problem.
The progress info goes to standard error so have you tried
a | pv ... -f 2> /tmp/out | b
? Otherwise an adaptation of the more complicated example from the man page may be used:Stdio buffering may present a problem.