Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/expect -f
- set force_conservative 0
- if {$force_conservative} {
- set send_slow {1 .1}
- proc send {ignore arg} {
- sleep .1
- exp_send -s -- $arg
- }
- }
- set timeout -1
- spawn openvpn remote.ovpn
- match_max 100000
- expect -exact "Enter Auth Username:"
- send -- "username\r"
- expect -exact "Enter Auth Password:"
- send -- "password\r"
- expect eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement