| 1 | # subprocess - Subprocesses with accessible I/O streams
|
|---|
| 2 | #
|
|---|
| 3 | # For more information about this module, see PEP 324.
|
|---|
| 4 | #
|
|---|
| 5 | # This module should remain compatible with Python 2.2, see PEP 291.
|
|---|
| 6 | #
|
|---|
| 7 | # Copyright (c) 2003-2005 by Peter Astrand <[email protected]>
|
|---|
| 8 | #
|
|---|
| 9 | # Licensed to PSF under a Contributor Agreement.
|
|---|
| 10 | # See http://www.python.org/2.4/license for licensing details.
|
|---|
| 11 |
|
|---|
| 12 | r"""subprocess - Subprocesses with accessible I/O streams
|
|---|
| 13 |
|
|---|
| 14 | This module allows you to spawn processes, connect to their
|
|---|
| 15 | input/output/error pipes, and obtain their return codes. This module
|
|---|
| 16 | intends to replace several other, older modules and functions, like:
|
|---|
| 17 |
|
|---|
| 18 | os.system
|
|---|
| 19 | os.spawn*
|
|---|
| 20 | os.popen*
|
|---|
| 21 | popen2.*
|
|---|
| 22 | commands.*
|
|---|
| 23 |
|
|---|
| 24 | Information about how the subprocess module can be used to replace these
|
|---|
|
|---|