You are not logged in.
Hi.
I created a small command to monitor my network speed with conky:
netstat -taupe | grep ESTABLISHED | tr -s " " | sed "s|\(\S*\)\s\(\S*\)\s\(\S*\)\s\S*:\(\S*\)\s\(\S*\)\s\(\S*\)\s\(\S*\)\s\(\S*\)\s\(\S*\)|\2 \3 :\4 \5 \9|" | column -t | sort -r
0 0 :52725 channel27.01.0:www-http 27750/pidgin
0 0 :41564 mirrors2.kernel.org:ftp 28978/wget
0 0 :39694 fritz.box:1012 27791/ffgtk
0 0 :32945 mirrors2.kernel.o:57747 28978/wget
The problem is that my 600k wget connection is always shown with 0k. Is there a better working solution for that?
Thanks in advance.
Andreas
Offline
Doesn't conky have a few built-in variables for network speed?
Offline
but not per connection/program i think
Offline
You would probably have to cross reference the same info iftop uses with the information from netstat to make the correspondence data stream <-> program. Mind you that any program can have a few instances downloading/uploading data so you may have to sum them.
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline