Module popen2 :: Class Popen3
[hide private]
[frames] | no frames]

_ClassType Popen3

Known Subclasses:

Class representing a child process. Normally instances are created by the factory functions popen2() and popen3().

Instance Methods [hide private]
 
__del__(self)
 
__init__(self, cmd, capturestderr=False, bufsize=-1)
The parameter 'cmd' is the shell command to execute in a sub-process.
 
_run_child(self, cmd)
 
poll(self, _deadstate=None)
Return the exit status of the child process if it has finished, or -1 if it hasn't finished yet.
 
wait(self)
Wait for and return the exit status of the child process.
Class Variables [hide private]
  sts = -1
Method Details [hide private]

__init__(self, cmd, capturestderr=False, bufsize=-1)
(Constructor)

 

The parameter 'cmd' is the shell command to execute in a sub-process. On UNIX, 'cmd' may be a sequence, in which case arguments will be passed directly to the program without shell intervention (as with os.spawnv()). If 'cmd' is a string it will be passed to the shell (as with os.system()). The 'capturestderr' flag, if true, specifies that the object should capture standard error output of the child process. The default is false. If the 'bufsize' parameter is specified, it specifies the size of the I/O buffers to/from the child process.