How to log-in into android device and execute commands
<p>I am writing a shell script in which I want to log-in into the Android device(adb shell) and execute some commands there. My script(script1.sh) looks like following:</p>

<pre><code># adb shell; cd sdcard; sh script2.sh &amp;
</code></pre>

<p>but above command is not working. As soon as "adb shell" command is executed, I enter into Android shell after which the remaining two commands are not executed. If I type "exit" to come out from android shell, now remaining commands are executed in host shell:</p>

<pre><code>./script1.sh: line 119: cd: /sdcard/: No such file or directory
</code></pre>