Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- trap "kill 0" SIGINT
- SERVER_NAMES_SA=("Interworks (Cape Town)" "SAIX (Cape Town)" "MTN SA (Cape Town)" "MTN SA (Port Elizabeth)" "Vox Telecom (Johannesburg)" "Seacom (Johannesburg)")
- SERVERS_SA=(14749 1270 2962 16107 7254 5889)
- SERVER_NAMES_INT=("Vodafone UK (London)" "SEACOM (Amsterdam)" "Orange (Barcelona)" "Cybera (Calgary)" "Comcast (Richmond)" "QTS (Hong Kong)")
- SERVERS_INT=(2789 16534 4374 4637 1770 12990)
- echo "South African server tests:"
- echo "==========================="
- echo
- for ((i=0; i < ${#SERVERS_SA[@]}; i++))
- do
- echo "Testing ${SERVER_NAMES_SA[$i]} (#${SERVERS_SA[$i]})"
- speedtest-cli --simple --server ${SERVERS_SA[$i]}
- echo
- done
- echo
- echo "International server tests:"
- echo "==========================="
- echo
- for ((i=0; i < ${#SERVERS_INT[@]}; i++))
- do
- echo "Testing ${SERVER_NAMES_INT[$i]} (#${SERVERS_INT[$i]})"
- speedtest-cli --simple --server ${SERVERS_INT[$i]}
- echo
- done
Add Comment
Please, Sign In to add comment