I have a program. Everytime that I run that program ,it prints a disclaimer msg and prompts the user to accept the agreement (i.e: type 'y' or 'n').
Now I want to run the program multiple times with different inputs. So I wrote a script which runs in a loop and calls the program multiple times.
But the program wouldnt execute until someone presses 'y' to accept the disclamer msg. How do I make the script type in a 'y' every time the program prompts for it ?
its a simple shell script.