4 ms·
Expect! I learned Tcl just for Expect. It’s one of those tools that takes you from “I have no idea how to do this” to “this is trivial” in just an afternoon.
by jmpman 6y ago
Expect! I learned Tcl just for Expect. It’s one of those tools that takes you from “I have no idea how to do this” to “this is trivial” in just an afternoon.
- thesuperbigfrog 6y agoExpect is such a useful tool, I am surprised that similar functionality is not found in most scripting languages. I use the Perl Expect.pm module (https://metacpan.org/pod/release/RGIERSIG/Expect-1.15/Expect.pod https://metacpan.org/pod/release/RGIERSIG/Expect-1.15/Expect...) since I create and maintain a lot of Perl scripts. It combines the utility of expect with the power of Perl regexes.
- monday_ 6y agoThere is [1] a pure python package for expect. It provides essentially the same interface and is incredibly useful. [1] https://pexpect.readthedocs.io/en/stable/ https://pexpect.readthedocs.io/en/stable/
- cafard 6y agoI haven't used Expect in twenty-five years, I suppose, but it was really useful for some tasks I had then.