I would like to have a kornshell script automatically read from a menu and enter a response at the command line. I already know the menu options and what my responses will be. I just need to automatically interact with the menu. Any help would be much appreciated.
If there is an easier way to read from a menu with a perl script I can do that as well.
An example of the menu is below.
1: Checkout Clearcase LABEL for Application was.
2: Deploy Application was to the WebSphere Environment.
3: STOP WebSphere Application Server for was application on the test123 node.
4: STOP WebSphere Application Server for was application on the test234 node.
5: START WebSphere Application Server for was application on the test123 node.
6: START WebSphere Application Server for was application on the test234node.
7:Bounce WebSphere Cluster for was application.
8: Clear JSP Cache
9: Exit the menu.
Please enter your choice [1,2,3,4,5,6,7,8 or 9]:
If there is an easier way to read from a menu with a perl script I can do that as well.
An example of the menu is below.
1: Checkout Clearcase LABEL for Application was.
2: Deploy Application was to the WebSphere Environment.
3: STOP WebSphere Application Server for was application on the test123 node.
4: STOP WebSphere Application Server for was application on the test234 node.
5: START WebSphere Application Server for was application on the test123 node.
6: START WebSphere Application Server for was application on the test234node.
7:Bounce WebSphere Cluster for was application.
8: Clear JSP Cache
9: Exit the menu.
Please enter your choice [1,2,3,4,5,6,7,8 or 9]: