title: Ksh, better way to ssh and run multiple commands
body: <p>What is nice way to ssh and run multiple commands in korn shell ? I came across related <a href="https://stackoverflow.com/questions/4412238/what-is-the-cleanest-way-to-ssh-and-run-multiple-commands-in-bash">question</a>  and top answer works for me but I specify /bin/bash/ in this and running it over korn shell. </p>
  
  <p>Is it ok to run below list of commands (copied from answer of referenced question) or there can be better way for ksh ?</p>
  
  <pre><code>ssh otherhost /bin/bash &lt;&lt; EOF
    ls some_folder; 
    ./someaction.sh 'some params'
    pwd
    ./some_other_action 'other params'
  EOF
  </code></pre>