call-system
allows executables and DOS commands to be called from Lisp code. The output goes to standard output, as the operating system sees it. (This normally means *terminal-io*
in LispWorks.)
If command is a string it is the command to execute. If it is a list, the first element of the list is the command and the remaining elements of the list are the command line arguments. The command is run directly, not via a subshell. If you need to invoke the command interpreter then pass as command "cmd /c command"
on NT or "command.com /c command"
on Windows 9x.
current-directory is the lpCurrentDirectory argument passed to CreateProcess. If this is not supplied, the pathname-location of the current-pathname is passed.
If wait is true, call-system
does not return until the process has exited. The default for wait is nil
.