This is not a very good answer, but he will have to do it until a good answer appears.
I ran TCL autoexpect and created a script file, then wrote a couple lines of Perl code that parses the lines with the send and expect tags, and then uses the perl expect module to run them along with some other actions.
This hybrid approach turns me on, but I still hope for a better answer.
source share