[Python-Dev] Alternative to os.system that takes a list of strings?

Guido van Rossum guido@digicool.com
Mon, 05 Feb 2001 10:55:39 -0500


> > This functionality is alrady available through the os.spawn*() family
> > of functions.  This is supported on Unix and Windows.
> 
> Hi, Guido.  The only problem with os.spawn* is that it forks off a new
> process, and I don't know how to wait for the new process to finish.

Use os.P_WAIT for the mode argument.

> > BTW, what do you mean by "upstream"?
> 
> I thought it might be a useful thing to include in the python
> distribution.

Which is hardly "upstream" from python-dev -- this is where it's
decided! :-)

--Guido van Rossum (home page: http://www.python.org/~guido/)