Advertisement
jk121960

Exec from sbcl LISP

Nov 3rd, 2013
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.47 KB | None | 0 0
  1. (defun dot->png (fname thunk)
  2.     (with-open-file (*standard-output*
  3.         fname
  4.         :direction :output
  5.         :if-exists :supersede)
  6.       (funcall thunk))
  7.     (ext:shell (concatenate 'string "dot -Tpng -O " fname)))
  8.  
  9. I need to rewrite the last statement to use either run-program or external-program
  10.  
  11. The executable command line normally looks like this:
  12. "neato -Tpng -O data-filename"
  13.  
  14. This produces a png image of a graph using data in the data-filename
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement