<p dir="ltr">If you know the size of the uncompressed file, you can tell it to pv and the progress will be accurate. There is a parameter for that. </p>
<div class="gmail_quote">On Mar 20, 2015 3:10 PM, "Jamon Camisso" <<a href="mailto:jamon.camisso@utoronto.ca">jamon.camisso@utoronto.ca</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 20/03/15 10:05 AM, Lennart Sorensen wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Fri, Mar 20, 2015 at 09:57:44AM -0400, Jamon Camisso wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'll add 'pv' to the list. Great way to watch progress if you are<br>
using zcat/cat to pipe something somewhere.<br>
<br>
For example, got a database dump? 'cat db.sql | pv | yoursqlengine'<br>
</blockquote>
<br>
If you do that, pv does NOT know how big the input is, and you are<br>
wasting a pipe and a process.<br>
<br>
'pv db.sql | yoursqlengine' on the other hand would work great.<br>
</blockquote>
<br>
Ah good point - the progress bar isn't accurate the way that I use it with zcat. I don't suppose there's a way to make that work with a stream is there?<br>
<br>
Cheers, Jamon<br>
---<br>
Talk Mailing List<br>
<a href="mailto:talk@gtalug.org" target="_blank">talk@gtalug.org</a><br>
<a href="http://gtalug.org/mailman/listinfo/talk" target="_blank">http://gtalug.org/mailman/<u></u>listinfo/talk</a><br>
</blockquote></div>