Hello,
I'm running this script on my linux machine.
#!/bin/bash
# \
exec expect -f "$0" ${1+"$@"}
set password [lindex $argv 1]
spawn passwd [lindex $argv 0]
expect "assword:"
send "$password\r"
expect "assword:"
send "$password\r"
expect eof
When I execute it on my linux machine:
setpw usera apassword
The Retry password request times out.
Can I get some help on this.
Thanks Much.
I'm running this script on my linux machine.
#!/bin/bash
# \
exec expect -f "$0" ${1+"$@"}
set password [lindex $argv 1]
spawn passwd [lindex $argv 0]
expect "assword:"
send "$password\r"
expect "assword:"
send "$password\r"
expect eof
When I execute it on my linux machine:
setpw usera apassword
The Retry password request times out.
Can I get some help on this.
Thanks Much.