title: bash: command not found issue ( sshpass )
body: <p>I have <code>machine A</code> and <code>machine B</code>. From my <code>local machine X</code> , I wanted to run a bash script , Which would connect to <code>Machine A</code> and Then to <code>Machine B</code> to check package version on <code>Machine B</code>. </p>
  
  <p>Right now , I have two or more packages installed on <code>Machine B</code>. </p>
  
  <p>Single Package Version Check : </p>
  
  <pre><code>sshpass -p 'Password' ssh admin@A.A.A.A -p 30025  "sshpass -p 'Password' ssh B.B.B.B "dpkg -s env.ns | grep -E 'Version|Package' | tr '\n' ',' |sed 's/,$/\n/'""
  </code></pre>
  
  <p>Result : </p>
  
  <pre><code>Package: env.ns,Version: 51.0.0n
  </code></pre>
  
  <p>Multiple Package Check : </p>
  
  <pre><code>sshpass -p 'Password' ssh admin@A.A.A.A -p 30025  "sshpass -p 'Password' ssh B.B.B.B "dpkg -s env.ns | grep -E 'Version|Package' | tr '\n' ',' |sed 's/,$/\n/' &amp;&amp; dpkg -s agent.ns | grep -E 'Version|Package' | tr '\n' ',' |sed 's/,$/\n/'""
  </code></pre>
  
  <p>Result : </p>
  
  <pre><code>Package: env.ns,Version: 51.0.0n
  -bash: dpkg: command not found
  </code></pre>
  
  <p>I cannot able to get the package version of the second one. Using <code>sshpass</code>, Can we pass multiple commands to run on host machine ? </p>
  
  <p>Expected Result : </p>
  
  <pre><code>Package: env.ns,Version: 51.0.0
  Package: agent.ns,Version: 51.0.0
  </code></pre>