Skip to content

Instantly share code, notes, and snippets.

@DeepInThought
Forked from wesley6j/digitalocean ping test
Created April 19, 2019 18:28
Show Gist options
  • Save DeepInThought/6069a284f9b52d1740127009ab6cfeb4 to your computer and use it in GitHub Desktop.
Save DeepInThought/6069a284f9b52d1740127009ab6cfeb4 to your computer and use it in GitHub Desktop.
#! /bin/bash
# This script runs on os x.
SITES=( "speedtest-lon1.digitalocean.com" \
"speedtest-sfo1.digitalocean.com" \
"speedtest-ams1.digitalocean.com" \
"speedtest-ams2.digitalocean.com" \
"speedtest-nyc1.digitalocean.com" \
"speedtest-nyc2.digitalocean.com" \
"speedtest-nyc3.digitalocean.com" \
"speedtest-sgp1.digitalocean.com" \
)
for SITE in "${SITES[@]}"
do
:
echo "##########################"
echo "=========================="
echo "${SITE}"
ping -c 5 ${SITE}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment