Hello!
You have to check which system you run the script and do the ping the right way. On Windows pings counting option key is
See: https://docs.python.org/2/library/sys.html#sys.platform
You have to check which system you run the script and do the ping the right way. On Windows pings counting option key is
-n
but -c
in LinuxSee: https://docs.python.org/2/library/sys.html#sys.platform