4 ms·
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 to
by repairisntcheap 7y ago
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!
- foobar_ 7y agoI'd still use expect instead of docker/ansible/salt ... if I could get away with it.
- marmaduke 7y agoThose aren't alternatives; you'd create a Docker image with expect installed, for example.
- foobar_ 7y agoYeah ... but I don't want to touch Kubernetes. Kubernetes doesn't spark joy.
- rmetzler 7y agoWrapping expect in an Ansible playbook is really useful though.
- emmelaich 7y agoThere is an expect module included in Ansible. Backed by pexpect of course.