【发布时间】:2016-04-26 03:21:14
【问题描述】:
我想通过在主机上运行的 script1.sh 执行此操作
#!/bin/sh
# adb shell "sh /sdcard/script2.sh &"
script2.sh 位于 /sdcard/ 文件夹内的 android 设备上。
我希望 script2.sh 继续在 Android 上运行。 script2.sh 有无限循环。 但是上面的命令不起作用。 script1.sh 退出后,script2.sh 立即停止。
我也试过
# adb shell "exec sh /sdcard/script2.sh &"
但这也行不通。
【问题讨论】:
标签: android linux bash shell adb