kill -9 $(ps -A|awk '/進程名/{print $1}')我寫了一句話 然后在cmd里面 sh *.sh 運行這個腳本的時候報錯 awk notfound could not kill pid -9 :not such process然后我把上面那句改成 kill ps -ef|grep text2就報錯 grep not found 這是怎么回事啊 not found grep 和awk 是怎么回事啊我是在adb shell下運行這個腳本的得怎么獲取運行后程序的pid啊
關(guān)于shell腳本killapk的問題
ibeautiful
2019-03-20 14:19:18