Hạnh Nguyễn
Member
How do I run a shell script in expect?
Answer
Expect Command
Answer
Expect Command
- The spawn command starts a script or a program like the shell, FTP, Telnet, SSH, SCP, and so on.
- The send command sends a reply to a script or a program.
- The Expect command waits for input.
- The interact command allows you to define a predefined user interaction.