wardi / speedometer

Chart network TX/RX and file download rates on the console
http://excess.org/speedometer/
GNU Lesser General Public License v2.1
215 stars 52 forks source link

Support pipe input #6

Closed normanr closed 1 year ago

normanr commented 10 years ago

This could be used to graph output of "tcpdump -w", possibly an easy way to implement network traffic filters.

eMPee584 commented 9 years ago

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 :grinning: ) it would be a matter of maybe five minutes.

normanr commented 9 years ago

I actually wrote the code for this last year. Let me see if I can find it to upload and file a pull request.

eMPee584 commented 7 years ago

It would still be great to have speedometer support stdin measurement...

eMPee584 commented 6 years ago

@normanr PING ; )

kenduest commented 4 years ago

@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.

ghost commented 1 year ago

@kenduest Your changes have been merged, thank you!