Case-Study-1 / setupaccess.exp
oxmraz-mldo24
Create setupaccess.yml
52d92f0
raw
history blame
384 Bytes
#!/usr/bin/expect -f
set PASSPHRASE_GROUP17 [lindex $argv 0]
spawn ./setupaccess.sh
set timeout 5
expect "The authenticity of host"
send "yes\r"
expect "Enter passphrase for key 'group17':\r"
send "$PASSPHRASE_GROUP17\r"
expect "Enter passphrase for key 'group17':\r"
send "$PASSPHRASE_GROUP17\r"
expect "Enter passphrase for key 'group17':\r"
send "$PASSPHRASE_GROUP17\r"
expect eof