Hello,
I was wondering if it is possible to pass data to a unix driven 3rd party menu. Changing the code is out of the question. I have a menu with various options and I would like a ksh to execute the menu and input the required fields. For example.
Main menu
Company Name
blah
blah
commit
exit
> 1 <enter>
(option 1 selected)
Enter Company name: BlahBlahBlah <enter>
(Back to main menu)
>4 <enter>
(commited change and back to main menu)
>5 <enter>
(exited program/menu)
Do I need to pass variables to the menu's option and if so how?
I believe that I have compiled expect on AIX 4 something so I can't imagine why it wouldn't. I've never heard of any platforms where it won't work. It does require TCL but that is about it.
It is a very useful utility when you need to batch control interactive programs. The name implies its functionality (though broader). You supply conditions to "expect" and respond with actions accordingly.