I'm trying to run a Windows command from a Clojure
program. I am testing it with a small echo statement:
(:require [clojure.java.shell :as sh])
(defn testcal [cob]
(let [cmd (str "echo hi" )
result (sh/sh cmd)]))
Its throwing me the following error:
Exception in thread "main" java.io.IOException: Cannot run program "echo hi": CreateProcess error=2, The system cannot find the file specified
My java path looks good and checked everything. Can someone help me with this?