pocketzeroes/pipeviewer

option to checksum the stream

Closed this issue · 1 comments

I think this would be a very useful feature allowing to validate the data 
integrity on the receiving end if e.g. data is just dumped into a file.  E.g. 
if I want to backup a partition of a drive, as is, running twice checksum first 
and then piping through pv would be evil, and constructing evolved shell 
commands like

$> cat ~/.emacs > >(md5sum - >| /tmp/1) | pv > /dev/null 
71,2kB 0:00:00 [  13MB/s] [  $> cat /tmp/1
e81dbdf1a7a273a60b789c55e8ebf65e  -
$> md5sum .emacs
e81dbdf1a7a273a60b789c55e8ebf65e  .emacs

would be ugly and error prone

What is the expected output?

upon exit print checksums of the "streamed" data, e.g.

MD5: e81dbdf1a7a273a60b789c55e8ebf65e
SHA: 0960cc9bdebeebd590c39cfc9b29f36530dc223e

What do you see instead?

nothing :-/

What version of the product are you using? On what operating system?

1.2.0-1 debian sid amd64

Please provide any additional information below.

I love beer

And thanks for the pv -- it is really nice ;)

Original issue reported on code.google.com by yarikop...@gmail.com on 18 Feb 2012 at 2:50

I think this is beyond the scope of PV, and solves a problem that I've never 
seen (I've never seen a TCP stream corrupt since TCP includes error checking; 
the worst I've seen is an early connection close).

Original comment by ivarch...@gmail.com on 4 May 2012 at 9:31

  • Changed state: WontFix