summaryrefslogtreecommitdiffstats
path: root/scripts/scp_the_repo.exp
blob: 5b96372395f16d10bcaebe7afc64a04f026fcb2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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