Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- file = open('iplist.txt', 'r')
- linea = file.readlines()
- for i in linea:
- comando = "ping -c 2 " + str(i)
- ping = os.system(comando)
- print ping
- file.close
- [/CODE]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement