Function: make-process command envp
Creates a
<java.lang.Process>object, using the specifiedcommandandenvp. Thecommandis converted to an array of Java strings (that is an object that has type<java.lang.String[]>. It can be a Scheme vector or list (whose elements should be Java strings or Scheme strings); a Java array of Java strings; or a Scheme string. In the latter case, the command is converted usingcommand-parse. Theenvpis process environment; it should be either a Java array of Java strings, or the special#!nullvalue.
Runs the specified
command, and waits for it to finish. Returns the return code from the command. The return code is an integer, where 0 conventionally means successful completion. Thecommandcan be any of the types handled bymake-process.
The value of this variable should be a one-argument procedure. It is used to convert a command from a Scheme string to a Java array of the constituent "words". The default binding, on Unix-like systems, returns a new command to invoke
"/bin/sh" "-c"concatenated with the command string; on non-Unix-systems, it is bound totokenize-string-to-string-array.
Function: tokenize-string-to-string-array command
Uses a
java.util.StringTokenizerto parse thecommandstring into an array of words. This splits thecommandusing spaces to delimit words; there is no special processing for quotes or other special characters. (This is the same as whatjava.lang.Runtime.exec(String)does.)