1
I'd like to write a shell (bash) script that prints the system's download and/or upload capacities (in Kbps):
# Get download bandwidth
sh fetch-bandwidth.sh DOWNLOAD
> 556 Kbps download bandwidth
# Get upload bandwidth
sh fetch-bandwidth.sh UPLOAD
> 374 Kbps upload bandwidth
I can take care of the boilerplate stuff (validating arguments for input, formatting and printing output, etc.), however I'm clueless what to use for actually querying the system for the bandwidth values. Thanks in advance!
Thanks @Renan (+1) - definitely something worth looking at, but I was sort of hoping to find something baked into the distro. There aren't any "standard" Linux tools that provide this kind of information? Thanks again! – pnongrata – 2012-12-23T23:33:03.230
@pnongrata As far as I know, no. – Renan – 2012-12-24T00:10:31.517