News for hackers. Stuff that matters.
Re:Don Libes' Expect: A Surprisingly Underappreciated Unix A... by thyrsus on Saturday November 23, 2019 @03:48PM (#21616434)
If all software was designed for scale, there would be no use for expect. It's 2019 and I still have expect in production:

  * to deploy commercial software whose configuration is only through  an interactive terminal session and stored in an undocumented binary format
  * to drive gdb to inspect a suspect Red Hat 6 "will not fix" GUI component that can go into an "impossible" pure cpu loop, to determine whether to kill it or whether it's busy in a more benign state.
Edit: the deploy is invoked by ansible, whose own expect module recommends the real expect "for complex cases"
Re:Don Libes' Expect: A Surprisingly Underappreciated Unix A... by Terretta on Sunday November 24, 2019 @12:20AM (#21618547)
For those on mobile or on MacOS w/ Safari, the two bullets above are:

- to deploy commercial software whose configuration is only through an interactive terminal session and stored in an undocumented binary format

- to drive gdb to inspect a suspect Red Hat 6 "will not fix" GUI component that can go into an "impossible" pure cpu loop, to determine whether to kill it or whether it's busy in a more benign state.

Re:Don Libes' Expect: A Surprisingly Underappreciated Unix A... by geofft on Saturday November 23, 2019 @05:48PM (#21617145)
gdb has a batch processing mode and its own scripting language with conditionals, loops, etc., so you could do this entirely with gdb scripting, probably. I've had good luck using gdb scripting for various things, notably conditional-ish breakpoints that printed some debugging info only under certain complicated conditions. (I do concede that if you know expect and not gdb scripting, except is quite likely easier, and it's possible expect is still easier if you know both, depending on the problem.)
Re:Don Libes' Expect: A Surprisingly Underappreciated Unix A... by sigjuice on Sunday November 24, 2019 @12:49AM (#21618658)
gdb can also be scripted using Python. https://sourceware.org/gdb/onlinedocs/gdb/Python.html

Edit: and Guile

Re:Don Libes' Expect: A Surprisingly Underappreciated Unix A... by ridiculous_fish on Saturday November 23, 2019 @05:14PM (#21616982)
fish shell uses expect as part of its interactive test suite. It's for more than just automating a workflow!