title: Running a shell script in Android from the Host
body: <p>I have a Host development PC running Ubuntu and I am doing all the android development on it.From this PC I wanted to (adb) push some files(executables) to android filesystem (say /data/dir1) , cd into  it and run that executable.Using a shell script (shown below) I can do this from the PC upto to connecting the android device and doing adb shell but I can not run other commands after that .
  e.g scripts</p>
  
  <pre><code>adb push &lt;file1&gt; /data/dir1/ 
  adb shell
  cd data/dir1
  ./file1
  </code></pre>
  
  <p>I  can run upto adb shell but not beyond that.How can I achieve the remaining two commands ( changing the directory to data/dir1 and running the ./file1) from the shell script running on the Host PC.</p>