Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check if host is reachable python

HOST_UP  = True if os.system("ping -c 1 " + SOMEHOST) is 0 else False
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #host #reachable #python
ADD COMMENT
Topic
Name
9+6 =