Last active
April 1, 2021 10:42
-
-
Save pupboss/581fc9eb5c4654637837303eef33e3c3 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 |
Thanks so much, this is awesome!
My pleasure
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks so much, this is awesome!