A string or a list of strings.
A string. Implemented only on Windows.
A string. Implemented only on Unix/Linux/Mac OS X.
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.
is the lpCurrentDirectory argument passed to CreateProcess. If this is not supplied, the pathname-location of the current-pathname is passed.
does not return until the process has exited. The default for
On Unix/Linux/Mac OS X
gives the type of shell required. The default is the Bourne shell,
. The C shell may be obtained by specifying
returns the exit status of the shell invoked to execute the command on Unix/Linux/Mac OS X, 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 - 6 Apr 2005