call-system
allows executables and Unix shell 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.
shell-type gives the type of shell required. The default is the Bourne shell, /bin/sh
. The C shell may be obtained by specifying "/bin/csh"
.
call-system
returns the exit status of the shell invoked to execute the command.