how to "spawn" an external cmd and catch its stdin,stdout,stderr

Fredrik Lundh fredrik at pythonware.com
Mon Oct 25 13:49:36 EDT 1999


Tom Vrankar <no at spam.net> wrote:
> If you don't like the side-effects of os.system() on Windows, try instead the 
> Windows-specific function os.spawnv (flag, program_path, argv), where the 
> undocumented flag =0 for blocking behavior, and flag =1 for asynchronous 
> behavior.

or, in other words, os.P_WAIT or os.P_NOWAIT.
(as mentioned in the library reference).

</F>

<!-- (the eff-bot guide to) the standard python library:
http://www.pythonware.com/people/fredrik/librarybook.htm
-->





More information about the Python-list mailing list