title: Run a command on remote server using python
body: <pre><code>cmd =&quot;some command&quot;
  echo &quot;The answer is&quot;
  echo $cmd
  </code></pre>
  <p>When I try to run the above command using paramiko library in python.</p>
  <p>The above command is saved in a variable named command.</p>
  <p>stdin,stdout,stderr=ssh_conn.exec_command(command)</p>
  <p>The process does not run the &quot;echo $cmd&quot; part of the command.
  Please help.</p>