<htmlxmlns="http://www.w3.org/1999/xhtml"><head><title>Process (infer.IBase.Process)</title><linkrel="stylesheet"href="../../../odoc.css"/><metacharset="utf-8"/><metaname="generator"content="odoc 1.5.1"/><metaname="viewport"content="width=device-width,initial-scale=1.0"/><scriptsrc="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><divclass="content"><header><nav><ahref="../index.html">Up</a>–<ahref="../../index.html">infer</a>»<ahref="../index.html">IBase</a>» Process</nav><h1>Module <code>IBase.Process</code></h1></header><dl><dtclass="spec value"id="val-create_process_and_wait"><ahref="#val-create_process_and_wait"class="anchor"></a><code><spanclass="keyword">val</span> create_process_and_wait : <span>prog:string</span><span>-></span><span>args:<span>string list</span></span><span>-></span> unit</code></dt><dd><p>Given an command to be executed, creates a process to execute this command, and waits for its execution. The standard out and error are not redirected. If the commands fails to execute, prints an error message and exits.</p></dd></dl><dl><dtclass="spec type"id="type-action"><ahref="#type-action"class="anchor"></a><code><spanclass="keyword">type</span> action</code><code> = </code><tableclass="variant"><trid="type-action.ReadStdout"class="anchored"><tdclass="def constructor"><ahref="#type-action.ReadStdout"class="anchor"></a><code>| </code><code><spanclass="constructor">ReadStdout</span></code></td></tr><trid="type-action.ReadStderr"class="anchored"><tdclass="def constructor"><ahref="#type-action.ReadStderr"class="anchor"></a><code>| </code><code><spanclass="constructor">ReadStderr</span></code></td></tr></table></dt></dl><dl><dtclass="spec value"id="val-create_process_and_wait_with_output"><ahref="#val-create_process_and_wait_with_output"class="anchor"></a><code><spanclass="keyword">val</span> create_process_and_wait_with_output : <span>prog:string</span><span>-></span><span>args:<span>string list</span></span><span>-></span><ahref="index.html#type-action">action</a><span>-></span> string</code></dt><dd><p>Given an command to be executed, creates a process to execute this command, and waits for its execution. Depending on the action passed, either stdout or stderr is returned, with the other being streamed to the console. If the commands fails to execute, prints an error message and exits.</p></dd></dl><dl><dtclass="spec value"id="val-print_error_and_exit"><ahref="#val-print_error_and_exit"class="anchor"></a><code><spanclass="keyword">val</span> print_error_and_exit : <span>?⁠exit_code:int</span><span>-></span><span><span>(<spanclass="type-var">'a</span>,Stdlib.Format.formatter,unit,<spanclass="type-var">'b</span>)</span><ahref="../../IStdlib/index.html#module-IStd">IStdlib.IStd</a>.format4</span><span>-></span><spanclass="type-var">'a</span></code></dt><dd><p>Prints an error message to a log file, prints a message saying that the error can be found in that file, and exist, with default code 1 or a given code.</p></dd></dl><dl><dtclass="spec value"id="val-pipeline"><ahref="#val-pipeline"class="anchor"></a><code><spanclass="keyword">val</span> pipeline : <span>producer_prog:string</span><span>-></span><span>producer_args:<span>string list</span></span><span>-></span><span>consumer_prog:string</span><span>-></span><span>consumer_args:<span>string list</span></span><span>-></span><ahref="../../IStdlib/index.html#module-IStd">IStdlib.IStd</a>.Unix.Exit_or_signal.t * <ahref="../../IStdlib/index.html#module-IStd">IStdlib.IStd</a>.Unix.Exit_or_signal.t</code></dt><dd><p>Pipeline producer program into consumer program</p></dd></dl></div></body></html>