Home | Trees | Index | Help |
|
---|
Package CedarBackup2 :: Module util :: Class Pipe |
|
object
--+ |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.
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.
Method Summary | |
---|---|
__init__(self,
cmd,
bufsize,
ignoreStderr)
| |
Inherited from Popen | |
Interact with process: Send data to stdin. | |
Check if child process has terminated. | |
Wait for child process to terminate. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Mar 29 20:58:30 2007 | http://epydoc.sf.net |