作者Leeng (Leeng)
看板AndroidDev
標題[問題] adb shell "背景程序"
時間Mon Aug 5 13:56:07 2013
在adb shell 底下,要跑背景程序在句尾加&即可
但是我希望寫在batch file:
adb shell "my_process &" 就會失敗,batch沒辦法繼續走下去
很多人說要用busybox nohup,但是我的Android沒有build busybox
請問在Android現有的命令架構下,有其他方法嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 60.251.192.2
→ dearlove:adb shell my_process\& 這樣呢? 08/06 13:53
→ Leeng:用& 或\& 都會讓cmd停在那一行,除非按^C跳出 08/06 16:37
→ Leeng:有人願意用 cat /dev/隨便一個block 試試看嗎? 謝謝 08/06 16:39
→ jerrysky:在android裡面放一shell script然後adb shell sh xx.sh? 08/09 00:40