windows command-line
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Thu Jul 9 04:23:51 EDT 2009
En Wed, 08 Jul 2009 14:23:54 -0300, Emile van Sebille <emile at fenx.com>
escribió:
> On 7/8/2009 10:07 AM Lucas Junqueira said...
>> Hi, I'd like to run a simple windows command-line program from within
>> my python script and agt all the returt it generates. Is this possible?
>> How can I do it?
>
> Depending on python version, look into subprocess, commands or os.pipe
> and related.
commands is Unix only, and os.pipe by itself doesn't solve the problem -
so we are left with subprocess, and that would be my reccomendation too.
--
Gabriel Genellina
More information about the Python-list
mailing list