python处理shell命令

To use pipe from the shell.python

from subprocess import runrun('grep something', data=run.stdin)

$ ps aux | python script.py
相关文章
相关标签/搜索