Instances of the Popen class have the following methods:
) |
) |
input=None) |
None
, if no data should be sent to the child.
communicate() returns a tuple (stdout, stderr).
Note: The data read is buffered in memory, so do not use this method if the data size is large or unlimited.
The following attributes are also available:
PIPE
, this attribute is a file
object that provides input to the child process. Otherwise, it is
None
.
PIPE
, this attribute is a file
object that provides output from the child process. Otherwise, it is
None
.
PIPE
, this attribute is file
object that provides error output from the child process. Otherwise,
it is None
.
None
value indicates that the process
hasn't terminated yet. A negative value -N indicates that the child
was terminated by signal N (Unix only).
See About this document... for information on suggesting changes.