title: execute cat command remotely using paramiko SSHClient
body: <p>I am new to python and linux and trying the following</p>
  
  <pre><code>ssh_client = paramiko.SSHClient()
  ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  ssh_client.load_system_host_keys()
  ssh_client.connect('server', username='username', password='cfwc')
  
  stdin, stdout, stderr = ssh_client.exec_command ('(cat /path to/a.txt |  cd /path to files ; ./script &gt; b.txt )')
  </code></pre>
  
  <p>But something is wrong in executing the cat command. Nothing is being written to b.txt. I have also tried several combinations like,</p>
  
  <pre><code>stdin, stdout, stderr = ssh_client.exec_command ('(cat a.txt |  cd /path to files/script &gt; b.txt )')
  </code></pre>
  
  <p>What do i miss here?</p>