(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"))