aaraza
4/9/2018 - 11:50 PM

shell.clj

(use '[clojure.java.shell :only [sh]])
(require '[clojure.string :as str])

(defn execute-command [command]
  """
  Execute shell command and return output as a vector
  """
  (str/split (:out (sh command)) #"\n"))