Advertisement
Guest User

Untitled

a guest
Dec 21st, 2012
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. import os
  2. file = open('iplist.txt', 'r')
  3. linea = file.readlines()
  4. for i in linea:
  5.     comando = "ping -c 2 " + str(i)
  6.     ping = os.system(comando)
  7.     print ping
  8. file.close
  9. [/CODE]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement