From c6e8399e4701029e37b150d4acca7cc702ede247 Mon Sep 17 00:00:00 2001 From: redrainl <61587864+redrainl@users.noreply.github.com> Date: Fri, 10 Feb 2023 15:24:55 +0800 Subject: [PATCH] Create speedtest_bestv.sh --- speedtest/speedtest_bestv.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 speedtest/speedtest_bestv.sh diff --git a/speedtest/speedtest_bestv.sh b/speedtest/speedtest_bestv.sh new file mode 100644 index 000000000..31a4b6bae --- /dev/null +++ b/speedtest/speedtest_bestv.sh @@ -0,0 +1,17 @@ +rm -f speedtest_bestv.log +while read line; do + ip=$line + date1=$(date +%Y%m%d%H) + a=$(date +%s) + a=${a:0:9} + a=`expr $a - 7` + url2="$date1/$a.ts" + url="http://$ip/liveplay-kk.rtxapp.com/live/program/live/cctv1hd8m/8000000/$url2" + echo $url + curl $url --connect-timeout 2 --max-time 15 -o /dev/null >dl.log 2>&1 + a=$(tail -n 1 dl.log|awk '{print $NF}') + echo "$ip $a">> speedtest_bestv.log + + +done +cat speedtest_bestv.log |grep M|awk '{print $2" " $1}'|sort