Malfist
Malfist

Reputation: 31815

Getting Expect to interact until the program terminates

I am using the Expect Linux tool and I have to interact with the shell. However, it's not a true interact, I just want to see what's going on. How can I get Expect to exit after the interacting program exits?

Upvotes: 1

Views: 1207

Answers (1)

Malfist
Malfist

Reputation: 31815

Never mind, I found it.

interact $

Will cause expect to exit when it encounters the string $.

Upvotes: 1

Related Questions