3 ms·
I used expect a ton years ago, for AIX system janitoring. A lot of things required telnet’ing into proto-ncurses mainframe applications and going through menus,
by pram 2y ago
I used expect a ton years ago, for AIX system janitoring. A lot of things required telnet’ing into proto-ncurses mainframe applications and going through menus, typing and selecting stuff etc.
The actual productive workflow is to do your task with autoexpect, and then refine the generated output:
https://linux.die.net/man/1/autoexpect https://linux.die.net/man/1/autoexpect
- AtlasBarfed 2y agoI really rail to understand why modern unix OS scripting has not made expect obsolete. But then again bash is state of the art, right? Meta shells and meta meta shells should be an assumed feature by now, not a hit or miss of terminal program feature sets, and not tied to UI programs.