How do I run a command with a pipe | in it?
|
The subprocess module seems complex...
Is there something like
output,error = `ps ca
import os os.system('ps -cax|grep something')
If you wanna replace grep argument with some variable:
os.system('ps -cax|grep '+your_var)