I am not able to come out of Expect
I am using expect command to pass password to my script.
like Code:
#!/usr/bin/expect -f any help ? |
Your question is ambiguous - in the title you say you cannot come out of expect, but in the body you say you do come out of expect.
The script you show us just ends after sending the password - thus it should exist to bash. What else would it do? |
Mistake :( , but i had already corrected it
|
correct, it should exit to bash, but it is not. I think there is some trick in line
[CODE] expect -timeout -1 [CODE] |
expect(1) suggests you need to issue the "exit" command to exit expect.
exit [-opts] [status] causes Expect to exit or otherwise prepare to do so. |
All times are GMT -5. The time now is 12:30 AM. |