readProcessWithExitCode -package:rawfilepath

readProcessWithExitCode is like readProcess but with two differences:
  • it returns the ExitCode of the process, and does not throw any exception if the code is not ExitSuccess.
  • it reads and returns the output from process' standard error handle, rather than the process inheriting the standard error handle.
On Unix systems, see waitForProcess for the meaning of exit codes when the process died as the result of a signal.
Specialized version for backwards compatibility.
Specialized version for backwards compatibility.
Like readProcessWithExitCode, but with generalized input and output type. Aside from the usual text-like types, the output can be a list of Chunk a. This lets you process the chunks received from stdout and stderr lazil, in the order they are received, as well as the exit code. Utilities to handle Chunks are provided in System.Process.ListLike.
Specialized version for backwards compatibility.
Specialized version for backwards compatibility.