Program read answers from a OS file
Hi,
I want to automate a menu based program for which I don't have the source
If I run it interactively I do this:
do ^<program>
It presents a menu and then you can go down further menus
Based on the selection it may ask for answers to other questions.
Is there some way I give the program a "response" file?
If not would I be able to use I/O redirection for this task?
Inputs would come from a file.
Output should go to the terminal (so I monitor how far the process has gone)
I have seen some examples of redirection code and it seems quite complicated.
IRIS runs on a Linux server
Comments
Take a look at Creating and Using Terminal Scripts
This is on Linux so above terminal will not work.
please see this Dev Community post
Thanks for everyone's suggestions.
Using the OS to pipe in the input from a file is a bit cumbersome and inflexible.