Executing a shell command from Common Lisp

后端 未结 8 1669
耶瑟儿~
耶瑟儿~ 2020-12-14 01:53

How can i execute a shell (bash) command within a Common Lisp program and assign the output to a variable?

8条回答
  •  眼角桃花
    2020-12-14 02:19

    Some CL implementations have built-in functions for this purpose. For example, SBCL has sb-ext:run-program, and CCL has run-program.

提交回复
热议问题