Advertisement
Guest User

Untitled

a guest
Jan 13th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. # The beginning isn't important
  2. expect -exact "r
  3. Please enter your username and password.r
  4. Username:"
  5. send -- "my-usernamer"
  6. expect -exact "my-usernamer
  7. Password:"
  8. send -- $(lpass show --password service im connecting to)
  9. expect -exact "r
  10. # The rest of the expect script follows
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement