Skip to content

Latest commit

 

History

History
40 lines (34 loc) · 1.11 KB

File metadata and controls

40 lines (34 loc) · 1.11 KB

Credits for original template code https://github.com/johnwmintz/pinglist

How to run

curl -s https://raw.githubusercontent.com/dylhost/host-ping-test/refs/heads/main/pinglist.sh  | bash -s

Flags

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

Countries Flags:

ISO 3166-1 alpha-3 format

Sort flags:

Default: Sort by ping (desending)

  1. Sort by ping (assending)
  2. Sort by IP
  3. Sort by host name
  4. Sort by City
  5. Sort by Country code

Examples

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