• 微信公众号:美女很有趣。 工作之余,放松一下,关注即送10G+美女照片!

[python] adb logcat realtime processing — subprocess

开发技术 开发技术 8小时前 2次浏览

CMD_logcat_clean = ‘adb logcat -c’
CMD = ”’adb shell “logcat | grep abc””’

subprocess.Popen(args = CMD_logcat_clean, stdin = None, stdout= None, stderr= None, shell = False)
p_obj = subprocess.Popen(args = CMD, stdin = None, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell = False)

 

with p_obj:
  for line in p_obj.stdout:

 


程序员灯塔
转载请注明原文链接:[python] adb logcat realtime processing — subprocess
喜欢 (0)