Created
July 26, 2013 10:49
-
-
Save anscii/6087980 to your computer and use it in GitHub Desktop.
svn up with auto svn+ssh password input via expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/expect | |
spawn svn up | |
expect { | |
"username@svn.domain.com's password:*" { | |
send -- "password\r" | |
exp_continue | |
} | |
eof { | |
exit 0} | |
} | |
send_user "success!\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment