Re:Expect – automates programs that expose a text terminal i...
by liotier on Monday March 25, 2013 @12:29PM
(#5437897)
Expect can easily save your day, but only consider it as a last resort - when all better ways of interacting are not available : like web scraping, it is quite fragile because the stability of the 'API' is usually far from guaranteed.
[ Parent
| on HN ]
Re:Expect – automates programs that expose a text terminal i...
by jlgreco on Monday March 25, 2013 @01:47PM
(#5438442)
Yeah, I've always considered Expect to be sort of a canary. As soon as you realize that you want to use it for something, you realize that there is something rather wrong going on.
Even so, if you've got to get the job done and can worry about architectural issues at a later time, expect is great.
Re:Expect – automates programs that expose a text terminal i...
by hn12 on Monday March 25, 2013 @02:49PM
(#5438832)
I couldn't agree more.
I'm sufficiently involved with Expect that I've collected enough material for an entire book on the subject (serious--I do a lot of writing, and am well aware of what's involved in such a publication); at the same time, I know that jlgreco is EXACTLY right that Expect use is a symptom of a larger problem. Much of what I've already published through the years about Expect is how a particular task that used to be done with Expect now can better be handled with automation-interface-X.