I'm running a shell script that pipes data from one process to another
process_a | process_b
Does anyone know a way to find out how many bytes were passed between the two programs? The only solution I can think of at the moment would be to write a small c program that reads from stdin, writes to stdout and counts all the of the data transfered, storing the count in an environment variable, like:
process_a | count_bytes | process_b
Does anyone have a neater solution?