How do you end an expect script?

Nguyễn Hào

New member
How do you end an expect script?
Answer
close would close the connection to the other process, so in sense acting as the reverse of expect eof . Again, your script could continue after this. Using close just before exiting the script doesn’t do much, as an exit will also implicitly close . Then there’s exit that exits your script.
 

Tìm kiếm

Back
Top