1
fcce May 24, 2018
shell 直接就搞定了,为什么要用 python,|tee 了解一下?
|
2
edsion996 May 24, 2018
重定向到文件,Python 读取文件
|
3
frmongo OP @kalelfc 谢谢,我又有个问题了,adb shell top -m 10 |tee aa.txt 是 work 的
adb shell top -m 10 |grep com.jingdong.app.mall|tee aa.txt 就没有输出了 |
5
ptrees May 24, 2018
额..没看仔细,怎么删掉自己的回复...
|
6
jalena May 24, 2018
adb shell top -m 10 |grep com.jingdong.app.mall >> tee aa.txt
|
7
jalena May 24, 2018
adb shell top -m 10 |grep com.jingdong.app.mall >> aa.txt
|
8
Loner233 May 24, 2018
>>> from subprocess import check_output
>>> out = check_output(["ls", "-al"]) |
9
frmongo OP 最后我用 python 写了一个,shell 也可以做到 while true;do (adb shell top -m 10 -n 1 |grep com.jingdong.app.mall|tee -a aa.txt);done
|
10
HLLiu May 29, 2018
刚想问下楼主怎么实现的,因为我最近也想直接想办法比对 logcat 里面的关键参数;但是自己看了下你这个监控 top,每次运行至请求一次,好像 logcat 也用不了....
|