3 ms·
Doing anything with expect is basically only coding for the happy path. It's fine for some throw away script but as soon as you need any kind of reliability it'
by rowanG077 7y ago
Doing anything with expect is basically only coding for the happy path. It's fine for some throw away script but as soon as you need any kind of reliability it's useless.
- GhettoMaestro 7y agoHave you ever stopped and asked yourself: What is a conditional statement?
- rowanG077 7y agoHave you ever asked yourself if an API can return an infinite amount of responses how many conditional you would need to handle that? The output of a terminal is just simply too unstructured to work in any high reliability environment.
- GhettoMaestro 7y agoI would agree that using a pure CLI (Unix Shell) requires significant operator skill to not accidentally blow things up. But that is also why you write scripts, test them, etc. Sitting at a root shell executing untested or uncertain things is pretty high on the list of don't do these things.