Support pipe input
normanr opened this issue ยท 6 comments
This could be used to graph output of "tcpdump -w", possibly an easy way to implement network traffic filters.
This would still be a very, very nice feature. I had a look at the source, and if I was a better coder (like you are, @wardi ๐ ) it would be a matter of maybe five minutes.
I actually wrote the code for this last year. Let me see if I can find it to upload and file a pull request.
It would still be great to have speedometer support stdin measurement...
@eMPee584 I made some code modifications to support stdin measurement, including running external shell command's stdout measurement.
Usage: (for text plain mode)
$ cat /dev/urandom | speedometer
$ speedometer < /dev/urandom
$ curl --output - https://download.site/file.iso 2>/dev/null | speedometer
$ tcpdump -w - | speedometer
Usage: (for graphic mode)
$ speedometer -d "curl https://download.site/file.iso --output -"
$ speedometer -d "cat /dev/urandom"
$ speedometer -d "tcpdump -w -"
Available on here:
https://github.com/kenduest/speedometer/tree/develop
Any improvements and suggestions are very welcome.
@kenduest Your changes have been merged, thank you!