added speedtest for automated environments

This commit is contained in:
zeus 2022-02-12 22:27:48 +01:00
parent 818562a24f
commit 4b66efff9a
2 changed files with 6 additions and 0 deletions

0
bash/pv_of_pid.sh Normal file → Executable file
View File

6
bash/speedtest-automated.sh Executable file
View File

@ -0,0 +1,6 @@
#!/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