Hi,
I want to run a long running bash script from a webapp and see it's
continuous results on the page. I use conch to get the process' output
stream and use this simple ring handler:
(defn handler [req]
(response/response
(let [p (sh/proc "/home/xyz/build.sh")]
(ring-io/piped-input-stream
#(io/copy (:out p) % :buffer-size 1)))
...
And run-jetty with :output-buffer-size 1 option, but the output is
unfortunately displayed at once after the process finishes.
Any idea?
Thanks,
Karel
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.