Home | Trees | Indices | Help |
|
---|
|
object --+ | subprocess.Popen --+ | Pipe
Specialized pipe class for use by executeCommand
.
The executeCommand function needs a specialized way of
interacting with a pipe. First, executeCommand
only reads
from the pipe, and never writes to it. Second,
executeCommand
needs a way to discard all output written to
stderr
, as a means of simulating the shell
2>/dev/null
construct.
All of this functionality is provided (in Python 2.4 or later) by the
subprocess.Popen
class, so when that class is available,
we'll use it. Otherwise, there's another implementation based on
popen2.Popen4
, which unfortunately only works on UNIX
platforms.
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
Create new Popen instance.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Aug 16 15:13:24 2009 | http://epydoc.sourceforge.net |