EDIT: before clarification
You can wrap the shell command with sh and then pipe in / dev / null, for example:
(clojure.java.shell/sh "sh" "-c" "echo hello > /dev/null") ;; {:exit 0, :out "", :err ""}
This will disable the output before moving on to clojure.
EDIT: After clarification
Print transfer and stderr for printing should work as long as the output comes out fast enough. If you want something with a continuous output of error messages and a standard output, you should refer to the source for the "sh" function.
Personally, I would make my own version of clojure.java.shell/sh and for each thread I create a thread that directly outputs output using something like IOUtils.copy from org.apache.commons.io.IOUtilsin
source share