I am using subprocess.check_output from pythons subprocess module to execute a ping command. Here is how I am doing it:
output = subprocess.check_output([\"p
In the list of arguments, each entry must be on its own. Using
output = subprocess.check_output(["ping", "-c","2", "-W","2", "1.1.1.1"])
should fix your problem.