Re: a small SBCL question



"TorvoSollazzo@xxxxxxxxxxxx" <matteo.pradella@xxxxxxxxx> writes:

Hi,
I have a small practical question for the SBCL experts: I need to call
an external program from my lisp code to excange data through files. At
shell, it is something like: "./the_program input.file output.file".
How can I do it using SBCL? I found sb-ext:run-program, but its
documentation appears a bit "sketchy" (at least to me ;)).

SB-EXT:RUN-PROGRAM has fine documentation available via:

(documentation 'sb-ext:run-program 'function)

For your example, it might be something like:

(sb-ext:run-program "./the-program" (list "input.file" "output.file"))

I use something like this all the time to invoke ImageMagick.

Zach
.