How should I use grep from python?
Matthew Wilson
matt at tplus1.com
Thu May 7 09:31:44 EDT 2009
On Thu 07 May 2009 09:09:53 AM EDT, Diez B. Roggisch wrote:
> Matthew Wilson wrote:
>>
>> As of May 2009, what is the recommended way to run an external process
>> like grep and capture STDOUT and the error code?
>
> subprocess. Which becomes pretty clear when reading it's docs:
Yeah, that's what I figured, but I wondered if there was already
something newer and shinier aiming to bump subprocess off its throne.
I'll just stick with subprocess for now. Thanks for the feedback!
More information about the Python-list
mailing list