Wrapper for command and function calls, allowing for dry runs and output handling
BatchedCommand(cmd, path=None, output_proc=None)¶
Container for a process which would allow for persistent communication
Close communication and wait for process to terminate
Returns: stderr output if return_stderr and stderr file was there. None otherwise Return type: str
Same as __call__, but only takes a single command argument
and returns a single result.
Same as __call__, but requires cmds to be an iterable
and yields results for each item.
A helper class to use where __del__ would call .close() which might fail if “too late in GC game”