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
  ;; -B = batch mode, doesn't prompt.
  ;; Add in your identity file.
  "scp" "-B" filename "u...@server:")

;; Or, pass input to scp. Don't know if this works.
(sh :in "password" "scp" filename "u...@server:")

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