In BASH how can i find my system on active internet interface, what is the upload speed?
Posted
by
YumYumYum
on Stack Overflow
See other posts from Stack Overflow
or by YumYumYum
Published on 2012-03-24T10:57:43Z
Indexed on
2012/03/24
11:30 UTC
Read the original article
Hit count: 220
I am trying to write an TUI bandwidth trace application which on query can instantly tell me, that my download and upload speed is XXXX. I have figured out that download i can use with wget
and parse it using BASH, but how do i get the upload speed?
Example of download parse method:
1) Remote download : wget http://x.x.com:7007/files/software/vnc.zip
Length: 1594344 (1.5M) [application/zip]
Saving to: `vnc.zip'
100%[==================================================================>] 1,594,344 573K/s in 2.7s
2012-03-24 11:35:22 (573 KB/s) - `vnc.zip' saved [1594344/1594344]
2) Local download tells
Length: 1594344 (1.5M) [application/zip]
Saving to: `vnc.zip'
100%[==================================================================>] 1,594,344 --.-K/s in 0.1s
2012-03-24 06:43:04 (11.4 MB/s) - `vnc.zip' saved [1594344/1594344]
© Stack Overflow or respective owner