Skip to content

Instantly share code, notes, and snippets.

@Ch00k
Created July 14, 2013 05:32
Show Gist options
  • Save Ch00k/5993312 to your computer and use it in GitHub Desktop.
Save Ch00k/5993312 to your computer and use it in GitHub Desktop.
f5vpn-login automated connection with expect
#!/usr/bin/expect
spawn /usr/bin/f5vpn-login <login>
expect {
"*Got plugin params, execing vpn client*" {
interact
} "*password*" {
send "<password>\r\n"
interact
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment