portable fork+exec/spawn

Ben Finney bignose+hates-spam at benfinney.id.au
Thu May 1 23:25:55 EDT 2008


Brendan Miller <catphive at catphive.net> writes:

> Is there an actual portable means of asynchronously spawning a
> process and getting a handle to it, being able to write stdin and
> read stdout, or does everyone just write their own wrapper for fork
> and spawn?

You're looking for the 'subprocess' module in the standard library
<URL:http://docs.python.org/lib/module-subprocess.html>.

-- 
 \     "If you can't annoy somebody there is little point in writing." |
  `\                                                  -- Kingsley Amis |
_o__)                                                                  |
Ben Finney



More information about the Python-list mailing list