Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

is expect still the default tool for command line automation, or has it been superseded by something else?


I haven't seen anything else in use anywhere. I believe it's still pretty much the undisputed king.


Perl has the work-alike Expect module.



…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


I 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.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: