Gitly
Log in
Register
v
/
examples
/
password
Raw file
|
8 loc (8 sloc)
|
190 bytes
|
Latest commit hash 3b42f18de
1
#!/usr/bin/expect
2
spawn ./password
3
expect "Enter your password : "
4
send "Sample\r"
5
expect "Confirm password : "
6
send "Sample\r"
7
expect "Password confirmed! You entered: Sample ."
8
expect eof