How do I run an expect script in Linux?

Linh Chi

New member
How do I run an expect script in Linux?
Answer
The first line defines the expect command path which is #!/usr/bin/expect . On the second line of code, we disable the timeout. Then start our script using
spawn command. We can use spawn to run any program we want or any other interactive script.
 

Tìm kiếm

Back
Top