How to run “ ps cax | grep something ” in Python?

前端 未结 5 1222
小蘑菇
小蘑菇 2020-11-29 03:49

How do I run a command with a pipe | in it?

The subprocess module seems complex...

Is there something like

output,error = `ps ca         


        
5条回答
提交回复
热议问题