Does there exist standard way to run external program in Common Lisp?

前端 未结 6 1620
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-11 15:07

In clisp, the following code works:

(defun hit-history () (shell \"tail ssqHitNum.txt\"))

However, in Clozure CL, the shell fu

6条回答
  •  情话喂你
    2021-01-11 15:50

    (defun dot->png (fname thunk)
       (with-open-file (*standard-output*
           fname
           :direction :output
           :if-exists :superseded)
         (funcall thunk))
       (ccl:run-program "dot" (list "-Tpng -O" fname))
    )
    

    i run success in ccl(clozure),when study land of lisp p123

提交回复
热议问题