A string or a list of strings.
A string. Implemented only on Unix/Linux/Mac OS.
A string. Implemented only on Windows.
A boolean. Implemented only on Windows.
The exit status of the invoked shell or process.
allows executables and DOS or Unix shell commands to be called from Lisp code. The output goes to standard output, as the operating system sees it. (This normally means
is a string it is the command to execute. If
, the first element gives the command and the remaining elements are the command line arguments, and
is run directly, not via a subshell.
If you need to invoke the command interpreter on Windows then pass as
"cmd /c command"
on NT or
"command.com /c command"
on Windows 9x.
On Unix/Linux/Mac OS
gives the type of shell required. The default is the Bourne shell,
. The C shell may be obtained by specifying
is the lpCurrentDirectory argument passed to CreateProcess. If this is not supplied, the pathname-location of the current-pathname is passed.
On Windows if
does not return until the process has exited. The default for
returns the exit status of the shell invoked to execute the command on Unix/Linux/Mac OS, or the process created on Windows.
(call-system (format nil "adb ~a < ~a > ~a"
CL-USER 176 > sys:call-system "sleep 3" :wait t
LispWorks Reference Manual - 25 Jul 2003