From 4b66efff9a5403b0daf389922e151f022c9ac84b Mon Sep 17 00:00:00 2001 From: zeus Date: Sat, 12 Feb 2022 22:27:48 +0100 Subject: [PATCH] added speedtest for automated environments --- bash/pv_of_pid.sh | 0 bash/speedtest-automated.sh | 6 ++++++ 2 files changed, 6 insertions(+) mode change 100644 => 100755 bash/pv_of_pid.sh create mode 100755 bash/speedtest-automated.sh 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