3 ms·
I've used Expect a couple times in the last 8 years. First to make backups of Cisco configurations into version control. And second by Ansible (indirectly it's
by INTPenis 7y ago
I've used Expect a couple times in the last 8 years. First to make backups of Cisco configurations into version control. And second by Ansible (indirectly it's used to read the sudo prompt).
So more people use expect than know it.
The issue I feel is that it's flimsy to wait for some expected output. I mean, it's even in the name! Especially when working with unknown APIs like Cisco IOS CLI.
So whenever I've done manual expect coding I've always felt very much out of my element and out of control. I am a control freak btw.
It works while it works but as soon as something unexpected happens it all goes to sh*t.