farn.run.subProcess

Functions

execute_in_sub_process(command[, path, timeout])

Create a subprocess with cwd = path and executes the given shell command.

farn.run.subProcess.execute_in_sub_process(command: str, path: Path | None = None, timeout: int | None = 7200) tuple[bytes, bytes]

Create a subprocess with cwd = path and executes the given shell command. The subprocess runs asyncroneous. The calling thread waits until the subprocess returns or until timeout is exceeded. If the subprocess has not returned after [timeout] seconds, the subprocess gets killed.