8 lines
116 B
Plaintext
8 lines
116 B
Plaintext
|
#!/usr/bin/expect
|
||
|
spawn passwd $1
|
||
|
expect "password:"
|
||
|
send "$2\r"
|
||
|
expect "Retype new password:"
|
||
|
send "$2\r"
|
||
|
interact
|