oneliners/bash/speedtest-automated.sh

7 lines
564 B
Bash
Raw Permalink Normal View History

#!/bin/bash
# run ookla's speedtest for automated environments. usually it would ask you to accept terms and licenses for the fist time, saving a note (with timestamp) about this in the executing users "~/.config/ookla/speedtest-cli.json" file this oneliner auto-accepts the terms and services. furthermore it get's rid of the notification about the acceptance, which is outputed to STDERR. formatted as json.
speedtest --accept-license --accept-gdpr -f json-pretty 2>/dev/null
# alternative:
# speedtest --accept-license --accept-gdpr -f json 2>/dev/null | jq