docker_test / aberconnect.sh
Yusin's picture
Update aberconnect.sh
ea90641
#!/usr/bin/expect -f
set timeout -1
set username yuxing.chen@unitn.it
set password cyx521301
spawn ./openconnect --protocol=gp vpn.icts.unitn.it --user=$username
expect "Password:*"
send -- "$password\r"
expect eof
##!/bin/bash
#/usr/bin/expect <<EOF
# set timeout -1
# set username yuxing.chen@unitn.it
# set password cyx521301
# spawn ./openconnect --protocol=gp vpn.icts.unitn.it --user=$username
# expect {
# "Password:*" {
# send -- "$password\r"
# }
# }
#EOF