3 ms·
How does it know the progress / ETA? I was under the assumption that pipes do not know how much total data is on its way?
by mibbitier 14y ago
How does it know the progress / ETA?
I was under the assumption that pipes do not know how much total data is on its way?
- aidenn0 14y agoIf you give it a file, or specify the amount on the commandline it knows, otherwise it doesn't
- mbreese 14y agoRight. I usually use pv in place of 'cat' at the start of a long set of piped commands. Anywhere you could use 'cat' you can use pv. If I'm not mistaken, I think you can also use multiple 'pv' commands at a time too.
- pronoiac 14y ago> If I'm not mistaken, I think you can also use multiple 'pv' commands at a time too. I use multiple pv instances to track compression/decompression rates, and overall progress, for tarballs. Using the "-c" code for console codes keeps the instances from stomping over each other's output.
- lloeki 14y agoThis is indeed visible in the example, only source has progress while bzcat and gzip only have flow.
- bsg75 14y agoYou have to supply it the stream sizes if you want completion percentages, otherwise it displays rates only. Example: https://gist.github.com/2783910 https://gist.github.com/2783910