Process module:System -package:unix -package:process-extras -package:io-streams -package:typed-process -is:module -package:Win32 -package:crypton -package:process

Process a list of flags (usually obtained from getArgs/expandArgsAt) with a mode. Returns Left and an error message if the command line fails to parse, or Right and the associated value.
CPU options impacting cryptography implementation and library performance.
The identifier of the CPU-time clock associated with the calling process. For this clock, the value returned by getTime represents the amount of execution time of the current process.
An exception that is raised when a process fails.
The exit code of the process.
Process the flags obtained by getArgs and expandArgsAt with a mode. Displays an error and exits with failure if the command line fails to parse, or returns the associated value. Implemented in terms of process. This function makes use of the following environment variables:
  • $CMDARGS_COMPLETE - causes the program to produce completions using complete, then exit. Completions are based on the result of getArgs, the index of the current argument is taken from $CMDARGS_COMPLETE (set it to - to complete the last argument), and the index within that argument is taken from $CMDARGS_COMPLETE_POS (if set).
  • $CMDARGS_HELPER/$CMDARGS_HELPER_PROG - uses the helper mechanism for entering command line programs as described in System.Console.CmdArgs.Helper.
Process a list of flags (usually obtained from getArgs and expandArgsAt) with a mode. Throws an error if the command line fails to parse, or returns the associated value. Implemeneted in terms of process. This function does not take account of any environment variables that may be set (see processArgs). If you are in IO you will probably get a better user experience by calling processValueIO.
Like processValue but on failure prints to stderr and exits the program.
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
Preprocessor encapsulates the abstract interface for invoking C preprocessors
guess whether a file is preprocessed (file end with .i)
run the preprocessor and return an InputStream if preprocesssing succeeded
This alias is provided to avoid breaking backwards compatibility.
Wrapper around createProcess that prevents multiple processes that are running concurrently from writing to stdout/stderr at the same time. If the process does not output to stdout or stderr, it's run by createProcess entirely as usual. Only processes that can generate output are handled specially: A process is allowed to write to stdout and stderr in the usual way, assuming it can successfully take the output lock. When the output lock is held (ie, by another concurrent process, or because outputConcurrent is being called at the same time), the process is instead run with its stdout and stderr redirected to a buffer. The buffered output will be displayed as soon as the output lock becomes free. Note that the the process is waited for by a background thread, so unlike createProcess, neglecting to call waitForProcess will not result in zombie processess.
Wrapper around createProcess that makes sure a process is run in the foreground, with direct access to stdout and stderr. Useful when eg, running an interactive process. Note that the the process is waited for by a background thread, so unlike createProcess, neglecting to call waitForProcess will not result in zombie processess.
Same as waitForProcess; provided to avoid breaking backwards compatibility.