« Changes to AGEcon Submit -- First Set of Changes | Main | More changes to Ag Econ Submit ... drop checksum, publisher and citation »

rsync and expect

Using expect to rsync the directory /Users/silvi003/Documents/workspace/dspace-sr
to
silvi003@odin.lib.umn.edu:/home/silvi003/src
over ssh using the password $ThePassWord



#!/usr/bin/expect spawn rsync -a --delete -e ssh /Users/silvi003/Documents/workspace/dspace-sr silvi003@odin.lib.umn.edu:/home/silvi003/src expect "password:" send "$ThePassWord\r" expect eof

TrackBack

TrackBack URL for this entry:
http://blog.lib.umn.edu/cgi-bin/mt-tb.cgi/59127

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)