run-application

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)

commandAn 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)

commandAn instance of <string>.  A shell command line.

Values

status-codeAn instance of <integer>.  The application’s exit status code.
Runs an application or command.
The class of vectors with elements that are eight-bit characters.
The class of integers.
The operating-system module contains functions for dealing with environment variables, the current user, and processes.
The class of sequences with elements that are characters.
The class of boolean values.
The class of objects that can be applied to arguments.