v / examples / password
Raw file | 8 loc (8 sloc) | 179 bytes | Latest commit hash 3b42f18de
1#!/usr/bin/expect
2spawn ./password
3expect "Enter your password : "
4send "Sample123\r"
5expect "Confirm password : "
6send "Sample234\r"
7expect "Passwords do not match ."
8expect eof