class to manage a extern sub process More...
Public Member Functions | |
__init__ (self, process, textMode=False) | |
addArgument (self, arg) | |
add a new argument | |
clearArguments (self) | |
clear all arguments | |
start (self) | |
start the new process | |
stop (self) | |
Stop the process by sending SIGTERM and wait for ending. | |
readline (self) | |
Read one line from stdout stream. | |
skipLines (self, lineCount=1) | |
Skip given number of lines from the output. | |
skipLinesUntil (self, matchText) | |
Skip lines from the output until the given string is in it. | |
setStdin (self, stdin) | |
Set the stdin stream instance. | |
setStdout (self, stdout) | |
Set the stdout stream instance. | |
setStderr (self, stderr) | |
Set the stderr stream instance. | |
stdout (self) | |
Property to get the stdout stream. | |
stderr (self) | |
Property to get the stderr stream. | |
isRunning (self) | |
Property to get process running state. | |
Protected Attributes | |
_args | |
_stdin | |
_stdout | |
_stderr | |
_processHandle | |
_textMode | |
class to manage a extern sub process
boswatch.processManager.ProcessManager.__init__ | ( | self, | |
process, | |||
textMode = False |
|||
) |
boswatch.processManager.ProcessManager.addArgument | ( | self, | |
arg | |||
) |
add a new argument
arg | argument to add as string |
boswatch.processManager.ProcessManager.clearArguments | ( | self | ) |
clear all arguments
boswatch.processManager.ProcessManager.start | ( | self | ) |
start the new process
boswatch.processManager.ProcessManager.stop | ( | self | ) |
Stop the process by sending SIGTERM and wait for ending.
boswatch.processManager.ProcessManager.readline | ( | self | ) |
Read one line from stdout stream.
boswatch.processManager.ProcessManager.skipLines | ( | self, | |
lineCount = 1 |
|||
) |
Skip given number of lines from the output.
lineCount | number of lines to skip |
boswatch.processManager.ProcessManager.skipLinesUntil | ( | self, | |
matchText | |||
) |
Skip lines from the output until the given string is in it.
matchText | string to search for in output |
boswatch.processManager.ProcessManager.setStdin | ( | self, | |
stdin | |||
) |
Set the stdin stream instance.
boswatch.processManager.ProcessManager.setStdout | ( | self, | |
stdout | |||
) |
Set the stdout stream instance.
boswatch.processManager.ProcessManager.setStderr | ( | self, | |
stderr | |||
) |
Set the stderr stream instance.
boswatch.processManager.ProcessManager.stdout | ( | self | ) |
Property to get the stdout stream.
boswatch.processManager.ProcessManager.stderr | ( | self | ) |
Property to get the stderr stream.
boswatch.processManager.ProcessManager.isRunning | ( | self | ) |
Property to get process running state.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |