[英]How to execute next command after Launch Android emulator from command line using shell script?
I am a newbie in Shell script programming, and maybe you can help me with my query. 我是Shell脚本编程的新手,也许您可以帮助我进行查询。
My requirement is in Android app build, launch emulator and install the ".apk" into emulator from command line for that I need to write a shell script in which I am able to build, install and run the app in emulator from the command line by individual command, but when i try to integrate those commands into a shell script, emulator taking the control when launching, no commands (install and run) are working after that. 我的要求是在Android应用程序构建中,启动仿真器并从命令行将“ .apk”安装到仿真器中,因为我需要编写一个shell脚本,在其中可以从命令行在仿真器中构建,安装和运行该应用程序通过单独的命令,但是当我尝试将这些命令集成到Shell脚本中时,仿真器在启动时会进行控制,此后没有任何命令(安装和运行)起作用。 can you tell me how sort out this issue
你能告诉我如何解决这个问题吗
Sri 斯里
Try to add "&" symbol after emulator line command. 尝试在模拟器行命令后添加“&”符号。
>command1 &
>command2
This makes command1
to go to background, and command2
can be run. 这使
command1
进入后台,并且可以运行command2
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.