How do I run a shell script in expect?

How do I run a shell script in expect?
Answer
Expect Command
  1. The spawn command starts a script or a program like the shell, FTP, Telnet, SSH, SCP, and so on.
  2. The send command sends a reply to a script or a program.
  3. The Expect command waits for input.
  4. The interact command allows you to define a predefined user interaction.
 

Tìm kiếm

Back
Top