next up previous contents index
Next: Dynamic Loading and Up: XLISP-STAT on UNIX Previous: XLISP-STAT Under the

Running UNIX Commands from XLISP-STAT

The system function can be used to run UNIX commands from within XLISP-STAT. This function takes a shell command string as its argument and returns the shell exit code for the command. For example, you can print the date using the UNIX date command:

> (system "date")
Wed Jul 19 11:06:53 CDT 1989
The return value is 0, indicating successful completion of the UNIX command.

Luke Tierney
Tue Jan 21 15:04:48 CST 1997