I am using expect command to pass password to my script.
like
Code:
#!/usr/bin/expect -f
set send_human {.1 .25 2 .05 1.5}
set breaktheloop 0
while {$breaktheloop == 0} {
expect "*Password:*"
# send -h "$pass\r"
send -h "$p\r"
expect -timeout -1 "... Writing FlashHeader"
sleep 10
set breaktheloop 1
it will send password properly, but after that it will not come out of expect to bash
any help ?