ShellΒΆ

  • Execute a command on shell

(require 'asdf)
(asdf:run-shell-command "touch foo")
  • Reading output of command

(with-output-to-string (stream) (asdf:run-shell-command "ps ax" :output stream))
  • or better

(ql:quickload "trivial-shell")
(setq output (trivial-shell:shell-command "df -k"))