title: phpseclib SSH - Change directory and run script?
body: <p>I have script in /home/pi/mydir which I want to execute so first thing I need to do is </p>
  
  <pre><code>$ssh-&gt;exec('cd mydir');
  </code></pre>
  
  <p>and then</p>
  
  <pre><code>$ssh-&gt;exec('./script');
  </code></pre>
  
  <p>but it's not working so can anyone help me?</p>