Skip to content

Instantly share code, notes, and snippets.

@anscii
Created July 26, 2013 10:49
Show Gist options
  • Save anscii/6087980 to your computer and use it in GitHub Desktop.
Save anscii/6087980 to your computer and use it in GitHub Desktop.
svn up with auto svn+ssh password input via expect
#!/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