Execute complex shell commands within python and obtain the output.
I try to execute some complex shell commands with in python and obtain
the output, I tried the following method:
For python 3.x:
ps = subprocess.Popen
output = ps.communicate().decode('utf8')
Is this the correct usage for this case?