Re:Most programmers don't know what Expect can do for them
by based2 on Sunday September 08, 2019 @04:36AM
(#20909291)
https://github.com/pexpect/pexpect Python module for controlling interactive programs in a pseudo-terminal
[ Parent
| on HN ]
Re:Most programmers don't know what Expect can do for them
by tyingq on Sunday September 08, 2019 @09:45AM
(#20910530)
There's also Perl's Expect.pm. I know Perl isn't popular here, but it excels in this sort of use case. The compact syntax for regexes on responses makes it a good match for expect scripting. It can also be paired with IO:Pty for some advanced stuff.
Re:Most programmers don't know what Expect can do for them
by DrJosiah on Sunday September 08, 2019 @11:35PM
(#20915024)
You are fighting the good fight, I kept trying and failing. Thank you.
http://code.activestate.com/recipes/440554-module-to-allow-a... https://www.python.org/dev/peps/pep-3145/