title: Using rsh in a shell script
body: <p>As part of a powershell script im working on, i use rsh in order to connect to another shell however after using this all subsequent commands are ignored and the script just ends.</p>
  <p>My workflow is:</p>
  <ul>
  <li>rsh &quot;podname&quot;</li>
  <li>cd &quot;path&quot;</li>
  <li>exit</li>
  </ul>
  <p>Everything after I use rsh is ignored. Is there a way to get the script to wait until the rsh is completed?</p>
  <p>Using: oc rsh foo &quot;cd /path &amp;&amp; somecommand&quot; resulted in an error saying that no such directory existed. Is this because it's trying to find /path on the local machine and not the remote one?</p>