adb 开启的是后台进程 不能被 terminate 或者 kill 掉 ,采用以下方法
handle = subprocess.Popen("adb -d logcat >" +log, shell=True)
time.sleep(1)
subprocess.Popen("taskkill /F /T /PID " + str(handle.pid) , shell=True)
adb 开启的是后台进程 不能被 terminate 或者 kill 掉 ,采用以下方法
handle = subprocess.Popen("adb -d logcat >" +log, shell=True)
time.sleep(1)
subprocess.Popen("taskkill /F /T /PID " + str(handle.pid) , shell=True)