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