[slime-devel] Where does run-program output go?

Helmut Eller heller at common-lisp.net
Mon May 2 16:50:42 UTC 2005


Jeffrey Cunningham <jeffrey at cunningham.net> writes:

> On the other hand, if I run CMUCL outside of SLIME, it works as
> advertised. So, where is the output going? 

The output is probably in the *inferior-lisp* buffer.  SLIME only
redirects output to the Lisp level stream; output to the Unix file
descriptor is currently not touched.  We could redirect it, but I'm not
sure whether that would be an advantage.

> And how can I capture it in
> a local variable?

Maybe:

 (with-output-to-string (s)
   (ext:run-program  "ls" '("-la" "/bin") :output s)
   s)

Helmut.



More information about the slime-devel mailing list