Yusin commited on
Commit
bb5c8b6
1 Parent(s): c431a91

Create aberconnect.sh

Browse files
Files changed (1) hide show
  1. aberconnect.sh +16 -0
aberconnect.sh ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/expect -f
2
+
3
+ set timeout -1
4
+
5
+ set username yuxing.chen@unitn.it
6
+ set password cyx21301
7
+ #set OTP [lindex $argv 2]
8
+
9
+ spawn ./openconnect --protocol=gp gp-vpn.icts.unitn.it --user=$username
10
+
11
+ expect "Password:*"
12
+ send -- "$password\r"
13
+
14
+ #expect "*OTP:*"
15
+ #send -- $OTP\r"
16
+ expect eof