zamotivator

Untitled

Dec 20th, 2012
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.26 KB | None | 0 0
  1. #!/bin/bash
  2. for url in "http://url1/trunk" "http://url2/trunk"; do
  3. expect <<EOF
  4. spawn svn info ${url} --username=${1}
  5. log_user 1
  6. set timeout -1
  7. expect "Password for" { send "${2}\r" }
  8. expect "Store password unencrypted" { send "yes\r" }
  9. expect eof
  10. EOF
  11. done;
Advertisement
Add Comment
Please, Sign In to add comment