Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.