I am trying to write a script which has to pick the prompted options by itself(i mean option to choose will be passed)
here is real scenario i am trying to do.
i have an executable(diagnos) which gets called in shell script, when the executable (diagnos) runs i get following as shown below:
now i have to select option 1 (1. - Test Vertex Payroll ........)
this selection should get automated without any user intervention.
Pls help me out to get this logic.
if you have any question pls let me know
Thanks in Advance.
but this is giving endless loop of above options
i have to forcefully exit from script using ctrl C
once i select option 1, i vl again be asked for another user input, but i dont see that.
I am getting endless loop.
Pls help