摘要: 1 # shell 2 last | cut -d ' ' -f 1 | sort -u 1 #python 2 from subprocess import Popen,PIPE 3 4 p1 = Popen('last',shell=True,stdout=PIPE) 5 6 p2 = Popen('cut -d ' ' -f 1,shell=True,stdin=p1... 阅读全文
posted @ 2014-06-04 09:49 metasequoia 阅读(459) 评论(0) 推荐(0)