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?
Asked
Active
Viewed 3,998 times
1 Answers
6
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.
Mark Wagner
- 17,764
- 2
- 30
- 47
-
1I would like to emphasize the use of "-f". From the man page – This is particularly useful when using it with a job-scheduler (e.g., oarsub)Shadow Jan 26 '15 at 09:39