Using the pipe viewer (pv) utility, I can visually monitor the data flow going through a pipe.
I would however like to be able to log the data flow in a file instead of dynamically viewing it in a terminal. (Say, one line per second).
Is this at all possible? Or better yet, is there an utility better suited to do this, with a greater degree of accuracy (for example, recalculating and logging the throughput for windows of say, 50ms)?