Python execute complex shell command
<p>Hi I have to execute a shell command :diff &lt;(ssh -n root@10.22.254.34 cat /vms/cloudburst.qcow2.*) &lt;(ssh -n root@10.22.254.101 cat /vms/cloudburst.qcow2)
I tried </p>

<pre><code>cmd="diff &lt;(ssh -n root@10.22.254.34 cat /vms/cloudburst.qcow2.*) &lt;(ssh -n root@10.22.254.101 cat /vms/cloudburst.qcow2)"
args = shlex.split(cmd)
output,error = subprocess.Popen(args,stdout = subprocess.PIPE, stderr= subprocess.PIPE).communicate()
</code></pre>

<p>However I am getting an error diff: extra operand cat</p>

<p>I am pretty new to python. Any help would be appreciated</p>
