There is this script for testing the internet speed directly from the command line:
curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -
Retrieving speedtest.net configuration...
Testing from XXXX (X.X.X.5)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by XXXX (XX) [0.54 km]: 3.513 ms
Testing download speed................................................................................
Download: 191.68 Mbit/s
Testing upload speed................................................................................................
Upload: 154.36 Mbit/s
I know I can get either the Download or Upload line using | grep Download/Upload
But how can I cast both Download and Upload into a variables?
--csvoption.speedtest.pylocally than to download a new version every time you run it, which (if you're cronning that invocation) means that any transient exploit will hit you. (If said maintainer GPG-signs their release tags, then you can verify that a git commit really came from them, subject to an appropriate level of confidence around private key storage).speedtest.pylocally? If not curl, what can I use to run it?result=$(python /path/to/speedtest.py).curlis a download tool. You don't need it at all if the script is already downloaded.