Re: a small SBCL question
- From: Zach Beane <xach@xxxxxxxx>
- Date: 28 Dec 2006 14:21:24 -0500
"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
.
- References:
- a small SBCL question
- From: TorvoSollazzo@xxxxxxxxxxxx
- a small SBCL question
- Prev by Date: a small SBCL question
- Next by Date: Re: a small SBCL question
- Previous by thread: a small SBCL question
- Next by thread: Re: a small SBCL question
- Index(es):