diff options
Diffstat (limited to 'scripts/scp_the_repo.exp')
-rwxr-xr-x | scripts/scp_the_repo.exp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/scp_the_repo.exp b/scripts/scp_the_repo.exp new file mode 100755 index 000000000..5b9637239 --- /dev/null +++ b/scripts/scp_the_repo.exp @@ -0,0 +1,16 @@ +#!/usr/bin/expect + +set timeout 20 + +set copy_dir [lindex $argv 0] +set url [lindex $argv 1] + +set password [lindex $argv 2] + +spawn scp -r $copy_dir $url + +expect "*password*" + +send "$password\r" + +expect eof |