Expect usage example for automation scripts

1 · Bowen Tan · July 23, 2022, 4 p.m.
Introduction Expect is an extension to Tcl scripting language and provides features to automate interactions between programs and users. For example, it can send password to an SSH command automatically without any user interaction. I will give some insights about what expect can do and some examples in this post. Basic examples Greeting like a robot Basically, expect has two keywords to use, expect and send. expect is to receive a certain message or a message pattern and then send responds acco...