Programmatic Parsing of ps

Emile van Sebille emile at fenx.com
Wed Feb 9 20:15:39 CET 2011


On 2/9/2011 10:58 AM octopusgrabbus said...
> I have Python 2.6.6. I would like to get this output
>
> ps -ef | grep 'fglgo csm'
>
> into a list. What is the best way to do that? I've been reading the
> documentation, and am lost.
>
> Thank you.
> cmn

commands.getoutput

Emile




More information about the Python-list mailing list