On Tuesday, January 21, 2014 11:05:13 PM UTC-5, Michael Gardner wrote:
Try (sh “bash” “-c” “ls *.txt”).
Sorry for the belated reply, Michael. Thanks so much for the help; works!
-- John
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to
I'd like to do something like:
user= (require '[clojure.java.shell :as sh])
user= (sh/sh ls *.txt)
but get:
{:exit 2, :out , :err ls: cannot access *.txt: No such file or
directory\n}
even though there *are* a few .txt files present.
That error message is the same one I'd get if
Try (sh “bash” “-c” “ls *.txt”).
On Jan 21, 2014, at 21:51 , John Gabriele jmg3...@gmail.com wrote:
I'd like to do something like:
user= (require '[clojure.java.shell :as sh])
user= (sh/sh ls *.txt)
but get:
{:exit 2, :out , :err ls: cannot access *.txt: No such file or