News for hackers. Stuff that matters.
Re:Most programmers don't know what Expect can do for them by repairisntcheap on Sunday September 08, 2019 @01:28AM (#20908772)
One of my most fond programming experiences was using tcl/expect to create a custom web interface for an IBM Tivoli tape library. The stock web interface was too expensive for a college with a few thousand users, and didn't provide adequate access control to allow our users to restore ONLY their own files.

Yes, wrapping a telnet session is a hack... But it was a hell of a hack that did everything we needed!

Re:Most programmers don't know what Expect can do for them by foobar_ on Sunday September 08, 2019 @04:42AM (#20909311)
I'd still use expect instead of docker/ansible/salt ... if I could get away with it.
Re:Most programmers don't know what Expect can do for them by emmelaich on Monday September 09, 2019 @03:19AM (#20915918)
There is an expect module included in Ansible.

Backed by pexpect of course.

Re:Most programmers don't know what Expect can do for them by marmaduke on Sunday September 08, 2019 @05:00AM (#20909368)
Those aren't alternatives; you'd create a Docker image with expect installed, for example.
Re:Most programmers don't know what Expect can do for them by foobar_ on Sunday September 08, 2019 @06:15AM (#20909601)
Yeah ... but I don't want to touch Kubernetes. Kubernetes doesn't spark joy.
Re:Most programmers don't know what Expect can do for them by rmetzler on Sunday September 08, 2019 @11:20AM (#20911052)
Wrapping expect in an Ansible playbook is really useful though.