diff --git a/bash/pv_of_pid.sh b/bash/pv_of_pid.sh old mode 100644 new mode 100755 diff --git a/bash/speedtest-automated.sh b/bash/speedtest-automated.sh new file mode 100755 index 0000000..efeffd5 --- /dev/null +++ b/bash/speedtest-automated.sh @@ -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