Process module:System -package:unix -is:module -package:Win32 -package:clock -package:io-streams -package:cmdargs -package:process

A running process. The three type parameters provide the type of the standard input, standard output, and standard error streams. To interact with a Process use the functions from the section Interact with a process.
CPU options impacting cryptography implementation and library performance.
An abstract configuration for a process, which can then be launched into an actual running Process. Takes three type parameters, providing the types of standard input, standard output, and standard error, respectively. There are three ways to construct a value of this type:
  • With the proc smart constructor, which takes a command name and a list of arguments.
  • With the shell smart constructor, which takes a shell string
  • With the IsString instance via OverloadedStrings. If you provide it a string with no spaces (e.g., "date"), it will treat it as a raw command with no arguments (e.g., proc "date" []). If it has spaces, it will use shell.
In all cases, the default for all three streams is to inherit the streams from the parent process. For other settings, see the setters below for default values. Once you have a ProcessConfig you can launch a process from it using the functions in the section Launch a process.
This will always come first, before any output or exit code.
An exception that is raised when a process fails.
The exit code of the process.
Options which have been enabled at compile time and are supported by the current CPU.
Deprecated: Please use pipeBytes instead.
Deprecated: Please use pipeChunks instead.
Logical Processor Index
processing function called asynchronously after a file is added to the rotation
Run a process, capture its standard output and error as a ByteString, wait for it to complete, and then return its exit code, output, and error. Note that any previously used setStdout or setStderr will be overridden.
Same as readProcess, but interleaves stderr with stdout. Motivation: Use this function if you need stdout interleaved with stderr output (e.g. from an HTTP server) in order to debug failures.
Same as readProcessInterleaved, but instead of returning the ExitCode, checks it with checkExitCode. Exceptions thrown by this function will include stdout.