I\'m working on some code that performs a ping operation from python and extracts only the latency by using awk. This is currently what I have:
from os import sy
os.system() returns the return code of the called command, not the output to stdout.
os.system()
For detail on how to properly get the command's output (including pre-Python 2.7), see this: Running shell command from Python and capturing the output