3 ms·
is expect still the default tool for command line automation, or has it been superseded by something else?
by zem 12y ago
is expect still the default tool for command line automation, or has it been superseded by something else?
- zaphar 12y agoI haven't seen anything else in use anywhere. I believe it's still pretty much the undisputed king.
- cafard 12y agoPerl has the work-alike Expect module.
- bjg 12y agoPython has one as well: https://pexpect.readthedocs.org/en/latest/ https://pexpect.readthedocs.org/en/latest/
- robmil 12y ago…and Ruby has the PTY module which includes an `expect` method, which is in the same ballpark: http://ruby-doc.org/stdlib-2.2.0/libdoc/pty/rdoc/PTY.html http://ruby-doc.org/stdlib-2.2.0/libdoc/pty/rdoc/PTY.html
- ArkyBeagle 12y agoI have found that simply opening sockets , pipes or serial ports and "fconfigure -translation binary -blocking 0 -buffering none" and using event driven I/O in regular Tcl to be superior. You use this same pattern for all activity, which makes things more consistent.