How use Linux expect?
Answer
Then start our script using spawn command. We can use spawn to run any program we want or any other interactive script.
…
Expect Command.
Answer
Then start our script using spawn command. We can use spawn to run any program we want or any other interactive script.
…
Expect Command.
spawn | Starts a script or a program. |
|---|---|
expect | Waits for program output. |
send | Sends a reply to your program. |
interact | Allows you to interact with your program. |