os.popen and the subprocess module

Tim Roberts timr at probo.com
Wed Nov 28 23:14:08 EST 2012


Andrew <drew00andy at yahoo.co.uk> wrote:
>
>I'm working on a script that will run an executable obtaine the output  
> from the executable
>and do some analysis on the output. Essentially the script runs the  
>executable analyses
>the data.
>I'm looking into os.popen and the subprocess module, implementing os.popen  
>is easy but i hear
>it is depreciating  however I'm finding the implemantation of subprocess  
>daunting can anyone help

One of my favorite things about the subprocess module is that the
introductory comments have examples of how to use subprocess to replace
almost every use case for os.system and os.popen.
-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-list mailing list