Easy to use python subprocess interface.
simple interface for subprocess
shell is not supported (shell=False)
Warning
unicode is supported only for string list command (Python2.x) (check shlex for more information)
| Parameters: |
|
|---|
Run command with arguments. Wait for command to complete.
| Return type: | self |
|---|
Run command with arguments. Wait for command to complete. If the exit code was as expected and there is no exception then return, otherwise raise EasyProcessError.
| Parameters: | return_code – int, expected return code |
|---|---|
| Return type: | self |
Used for testing if program is installed.
Run command with arguments. Wait for command to complete. If OSError raised, then raise EasyProcessCheckInstalledError with information about program installation
| Parameters: | return_code – int, expected return code |
|---|---|
| Return type: | self |
poll process using subprocess.Popen.poll()
| Return type: | bool |
|---|
PID (subprocess.Popen.pid)
| Return type: | int |
|---|
returncode (subprocess.Popen.returncode)
| Return type: | int |
|---|
Kill process (subprocess.Popen.terminate()). Do not wait for command to complete.
| Return type: | self |
|---|
sleeping (same as time.sleep())
| Return type: | self |
|---|
start command in background and does not wait for it
| Return type: | self |
|---|
Kill process and wait for command to complete.
| Return type: | self |
|---|
Wait for command to complete.
| Return type: | self |
|---|
This exception is raised when a process run by check() returns a non-zero exit status or OSError is raised.
alias of EasyProcess
This function tries to extract the version from the help text of any program.