Credits for original template code https://github.com/johnwmintz/pinglist
curl -s https://raw.githubusercontent.com/dylhost/host-ping-test/refs/heads/main/pinglist.sh | bash -s
curl -s https://raw.githubusercontent.com/dylhost/host-ping-test/refs/heads/main/pinglist.sh | bash -s -- -flags
| Flag | Description |
|---|---|
| -C | Specify city to test (can't be used with country) |
| -c | Specify country to test |
| -s | Specify sort flag (options below) |
| -t | Ping timeout (default 1s) |
| -d | Use listtest instead of list.txt |
Default: Sort by ping (desending)
- Sort by ping (assending)
- Sort by IP
- Sort by host name
- Sort by City
- Sort by Country code
Test all SGP hosts
curl -s https://raw.githubusercontent.com/dylhost/host-ping-test/refs/heads/main/pinglist.sh | bash -s -- -c SGP
Sort by country code
curl -s https://raw.githubusercontent.com/dylhost/host-ping-test/refs/heads/main/pinglist.sh | bash -s -- -s 5