In clisp, the following code works:
(defun hit-history () (shell \"tail ssqHitNum.txt\"))
However, in Clozure CL, the shell fu
shell
Have a look at the inferior-shell package.
inferior-shell
(Get it via the almighty quicklisp package manager.)
quicklisp
This works in the interpreter, if you have internet:
(require 'inferior-shell) (inferior-shell:run/s '(curl icanhazip.com))