Advertisement
Guest User

Untitled

a guest
Aug 28th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. unit1_status=check_output("ping -c 1 " + unit1.ip, shell=True, universal_newlines=True)
  2. if "0%" in unit1_status:
  3. unit1networked=1
  4. elif "0%" not in unit1_status:
  5. unit1networked=0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement