Runs an application in a separate process. Under Windows, the application’s output may be retrieved piecemeal via the outputter argument. Under Unix, equivalent but not identical to system.
The outputter argument is a function with the signature (buffer :: <byte-string>, end: :: <integer>) => (). It is called repeatedly with output from the process. buffer contains the output, and end indicates the extent of buffer that contains the output. The contents of buffer are not preserved between invocations of outputter.
Exported from
Arguments (Windows)
| command | An instance of <string>. A shell command line. |
| under-shell?: | An instance of <boolean>, specifying whether to execute the command line in a new shell. Defaults to #f. |
| inherit-console?: | An instance of <boolean>, specifying whether the new process should inherit existing handles. Defaults to #t. |
| activate?: | An instance of <boolean>, specifying whether to bring the new process’s window to the foreground. Defaults to #t. |
| minimize?: | An instance of <boolean>, specifying whether to minimize the new process’s window. Defaults to #f. |
| outputter: | An instance of <function> or #f. A function to deal with the process’s output. |
| asynchronous?: | An instance of <boolean>. If false, wait for the process to terminate before continuing execution. Defaults to #f. |
Arguments (Unix)
| command | An instance of <string>. A shell command line. |
Values
| status-code | An instance of <integer>. The application’s exit status code. |