zut.process.run_process_callback
- zut.process.run_process_callback(cmd: str | PathLike | bytes | list[str | PathLike | bytes], *, encoding: str | Literal['unknown', 'bytes'] | None = None, shell=False, env: dict[str, Any] | None = None, on_stdout: Callable[[str | bytes], None] | None = None, on_stderr: Callable[[str | bytes], None] | None = None, strip: bool | Literal['rstrip', 'strip'] = False, strip_stderr: bool | Literal['rstrip', 'strip'] | None = None) int
Run a process, using on_stdout and/or on_stderr in other threads when data is available.