check if host is reachable python code example
Example: check if host is reachable python
HOST_UP = True if os.system("ping -c 1 " + SOMEHOST) is 0 else False
HOST_UP = True if os.system("ping -c 1 " + SOMEHOST) is 0 else False