I've run into the need to copy the same file to 500 different nodes on a computing cluster, so I thought I'd save myself some time by writing a loop in Clojure to do that.
But the server requires a password to be entered, and I'm not sure how to automatically supply that password. Here's the manual usage: scp myfile.txt u...@server: PASSWORD: mypassword And here's a quick and dirty Clojure hack: (.. Runtime getRuntime (exec "scp myfile.txt u...@server:")) (Thread/sleep 1000) (.. Runtime getRuntime (exec "mypassword")) But it doesn't work. I was wondering if anyone has run into this before. Thanks a lot for your help -Patrick
-- 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