-
-
Save khanh101/3d29ffc1df33cb13ea3de116731a4a5e to your computer and use it in GitHub Desktop.
Shell script for NTU campus vpn connection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/expect | |
set timeout 10 | |
spawn sudo openconnect ntuvpn.ntu.edu.sg --prot=pulse | |
expect "Password:" | |
send "ACCOUNTPWD\n" | |
expect "Realm" | |
send "Student\n" | |
expect "Username:" | |
send "UNAME\n" | |
expect "Password:" | |
send "PWD\n" | |
interact |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment