0
Is there any way to drip an IP natively into python, or a library?
For example, I do so:
import os
ips = ["192.168.0.1","192.168.0.2","192.168.0.3"]
cmd = "ping -n 3 "
for ip in ips:
print(os.popen(cmd + ip).readlines())
Have some other way than using command (ping -n 3 192.168...
) from the platform itself (linux, windows, macos...)?
Perfect, thanks. Just one observation, I can only use it in python2.7, which for me is already great. It didn’t work in python3.7. No 3.7 of this message: Modulenotfounderror: No module named 'core'
– Dante