python--过滤top命令--之--时间_系统CPU_进程CPU_内存
摘要:
#!/usr/bin/env python # -*- coding: cp936 -*- """top -b -n 2 -d 3 > ***.log-b:bash模式,可以重定向到文件-n:一共取2次数据-d:每次top数据间隔为3秒 """ #!/usr/bin/env python # -*- coding: cp936 -*- import os import re impo... 阅读全文
posted @ 2012-11-21 23:00 龙沙宝石 阅读(1226) 评论(0) 推荐(0)