Re: Using Runtime.exec to copy a file to a secure server.

2010-01-19 Thread CuppoJava
Thanks for your replies. I'll checkout shell-out to see what it's doing differently than what I'm doing. That will help me figure out what I'm missing. -Patrick -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloj

Re: Using Runtime.exec to copy a file to a secure server.

2010-01-19 Thread Richard Newman
You should probably use SSH keys instead of passwords. If you can't for some reason... Two interesting avenues: use shell-out, or use Ant. http://ant.apache.org/manual/OptionalTasks/scp.html (use 'clojure.contrib.shell-out) ;; Returns a map with useful keys like :exit. (sh :return-map true

Re: Using Runtime.exec to copy a file to a secure server.

2010-01-19 Thread Timothy Pratley
2010/1/20 CuppoJava : > (.. Runtime getRuntime (exec "scp myfile.txt u...@server:")) > (Thread/sleep 1000) > (.. Runtime getRuntime (exec "mypassword")) This creates two separate unrelated processes. You could instead get the stream of the original process and send it the info. -- You received th