Are you sure that the script itself is streaming its results? Shells sometimes batch things when they detect they are not connected to a tty.
On 24 September 2015 at 16:45, Karel Miarka <karel.mia...@seznam.cz> wrote: > 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 clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > 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 clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com 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 clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.