Hello there,

I'm writing some code, int my code it does following things (under
Windows):
1. create a sub-process by "(.exec (Runtime/getRuntime) "cmd")" named
"shell"
2. get input-stream, output-stream and err-stream from the shell
object
3. send commands to "shell" by dropping line into the output-string
then get any result from input-stream/err-stream

now it works fine for NON-interactive command such as "dir" or "help",
but it will hang when I send the shell commands that require user
input, such as "time". I think the reason is that my code doesn't
detect any input requirement so the shell keep waiting for an input
infinitely.

Later on I tried to add code that can make this possible but I found
there's no way to detect if a command requires user's input and thus I
have to find another way to make it work - but I didn't success and
have been struggling for a workaround for a long while....

anyone has any idea?

Thanks,
Jaime

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

Reply via email to