running shell commands with gnu clisp
Posted
by Paul Nathan
on Stack Overflow
See other posts from Stack Overflow
or by Paul Nathan
Published on 2010-06-10T22:59:04Z
Indexed on
2010/06/10
23:02 UTC
Read the original article
Hit count: 377
I'm trying to create a "system" command for clisp that works like this
(setq result (system "pwd"))
;;now result is equal to /my/path/here
I have something like this:
(defun system (cmd)
(ext:run-program :output :stream))
But, I am not sure how to transform a stream into a string. I've reviewed the hyperspec and google more than a few times.
© Stack Overflow or respective owner