Run shell command in Clojure from specific location Run shell command in Clojure from specific location shell shell

Run shell command in Clojure from specific location


clojure.java.shell/sh supports a :dir option to set the working directory of the sub-process:

(clojure.java.shell/sh "git" "log" :dir "/path/to/some/directory")

See here.