Hi,

I'm using an nREPL server as an sshd replacement for Windows. I'm doing 
things like unzip files, copy files, calling shell (bat/cmd/git bash) 
scripts local to the nREPL process. The scripts write to stdout/stderr. 
Some of the scripts produce **A LOT** of output so I'm not using 
clojure.java.shell/sh 
but java/lang/Runtime.exec(). I consume stdout and stderr via futures 
asynchronously to the exec() and write them to stdout/stderr of the nREPL 
process.

But this way I can't see the output on the calling nREPL client side.

So my question is: is there a "standard way" to consume data synchronously 
to the nREPL session-call in order to use the data on the nREPL client side?

I thought of using a small timeout when doing the call, and if it has not 
completed then do a seperate call to the server to "download" the data 
which I  would "cache" on the server side (via bounded buffers/core.async 
so that I do not run out of heap in case the client is too slow 
downloading). 

Any better idea?

Henrik

-- 
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.

Reply via email to