Re: Immediate streaming of shell cmd stdout to a browser

2015-09-25 Thread Patrick Kristiansen
Could it be that the client does not support "streaming" the result and instead waits until the server finishes the request? I don't think the browser or standard AJAX requests let you stream the result. -- You received this message because you are subscribed to the Google Groups "Clojure" gro

Re: Immediate streaming of shell cmd stdout to a browser

2015-09-25 Thread Karel Miarka
I'm not sure. I just run some thing like this inside build.sh: #!/bin/bash git pull lein clean lein uberjar cp target/xyz.jar ~/builds/ -- 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 Not

Re: Immediate streaming of shell cmd stdout to a browser

2015-09-25 Thread Karel Miarka
I'm not sure. I just run some thing like this inside build.sh: git pull lein clean lein uberjar cp target/xyz.jar ~/builds/ -- 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

Re: Immediate streaming of shell cmd stdout to a browser

2015-09-24 Thread Gary Verhaegen
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 wrote: > Hi, > > I want to run a long running bash script from a webapp and see it's > continuous results on th

Immediate streaming of shell cmd stdout to a browser

2015-09-24 Thread Karel Miarka
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")] (rin