How to run " ps cax | grep something " in Python?

Viewed 64094

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

The subprocess module seems complex...

Is there something like

output,error = `ps cax | grep something`

as in shell script?

5 Answers
Related