simple issue..

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.

sorry, I should have put a better topic.. and I should have posted this in the 'UNIX for beginners' section.. my bad.

If you're accessing your unix system thru a PC running a terminal emulator, use QuickKeys on your PC to 'type' the responses needed.