Advertisement
Guest User

Untitled

a guest
Mar 10th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #!/usr/bin/expect -f
  2. set force_conservative 0
  3. if {$force_conservative} {
  4. set send_slow {1 .1}
  5. proc send {ignore arg} {
  6. sleep .1
  7. exp_send -s -- $arg
  8. }
  9. }
  10.  
  11. set timeout -1
  12. spawn openvpn remote.ovpn
  13. match_max 100000
  14. expect -exact "Enter Auth Username:"
  15. send -- "username\r"
  16. expect -exact "Enter Auth Password:"
  17. send -- "password\r"
  18. expect eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement