processing unix command output lists

ramak_b at my-deja.com ramak_b at my-deja.com
Wed Mar 29 01:29:42 EST 2000


Hi,
In python is there a way to get the output of a unix comamnd
in the form of list or something.
example:
import os
result=os.command(" ps -elfy | grep AlarmMgr");
Now is there a way I should be able to process the output of this
command rather than simple success(0) or failure(1) as it happens with
the above command.
Any Help is appreciated.
--RamaK


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list