Thanks Drew.

This is the script that worked in the end:

(./emulator) &
sleep 8;
./adb shell export PATH=/data/busybox:$PATH;
./adb shell

Unfortunately it appears that the PATH is set for each instance of the shell, not the emulator, so that didn't work anyway.

-ryan


On Jan 28, 2008, at 3:34 PM, Drew A. Withers wrote:

the sleep command:
sleep 4
pauses 4 seconds


On Jan 28, 2008 4:27 PM, Ryan Johnson <[EMAIL PROTECTED]> wrote:
I am playing around with Google's Android emulator, but it appears
that the PATH variable is not persistent.  I wanted to write a shell
script that I could run to start up the emulator, set the path, and
then give me shell access.  One problem is that there is a short start
up time for the emulator, so I would need to wait a few seconds before
running any other commands.  Here is what I have so far:

./emulator &;
#NEED TO WAIT A FEW SECONDS HERE
./adb shell export PATH=/data/busybox:$PATH;
./adb shell

Apparently there is also a problem with the '&' in line 1.  How can I
start up the emulator in the background, wait a few seconds, and then
run the other two commands? Thanks.

-ryan
--------------------
BYU Unix Users Group
http://uug.byu.edu/

The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU- UUG.
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/newbies



--
Drew A. Withers
http://drewwithers.com --------------------
BYU Unix Users Group
http://uug.byu.edu/

The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU- UUG.
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/newbies

--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/newbies

Reply via email to