Run a subprocess and communicate with it via stdin, stdout, and stderr.
Requires that platform supports, eg, posix-style os.pipe and os.fork
routines.
Subprocess class features:
provides non-blocking stdin and stderr reads
provides subprocess stop and continue, kill-on-deletion
provides detection of subprocess startup failure
Subprocess objects have nice, informative string rep (as every good object
ought).
|
Functions
|
|
record_trial test
|
|
|
record_trial
|
record_trial ( s )
Exercise encapsulated write/read with an arbitrary string.
Raise IOError if the string gets distorted through transmission!
|
Exceptions
|
|
IOError, "String distorted:\n%s" % show
|
|
|
|
test
|
test ( p=0 )
|
|
Classes
|
|
| Ph | Convenient interface to CCSO ph nameserver subprocess. | | ReadBuf | Output buffer for non-blocking reads on selectable files like pipes and | | RecordFile | Encapsulate stream object for record-oriented IO. | | Subprocess | Run and communicate asynchronously with a subprocess. |
|
|