david/scripts-archive
david
/
scripts-archive
Archived
1
0
Fork 0
This repository has been archived on 2022-04-16. You can view files and clone it, but cannot push or open issues or pull requests.
scripts-archive/speedtest.sh

13 lines
371 B
Bash

#!/bin/bash
# simple speedtest logger
# install https://github.com/taganaka/SpeedTest first
server="speedcheck.liwest.at:8080"
options="--output text --test-server $server"
timestamp=$(date +%Y/%m/%d_%H:%M)
cmd="/usr/local/bin/SpeedTest"
result=$($cmd $options | grep -v IP_LAT | grep -v IP_LON | grep -v PROVIDER | grep -v TEST_SERVER_HOST)
echo $timestamp - $result