possible to run script to enter info within a program?

hi,
I am new to Unix and script writing so I was wondering if this would be possible and how I might do it. I've learned to write a basic script and the first step I need to do is to open a program (for genetic linkage). The program then requires me to enter a lot of information. Sort of line by line about 4 times. Can I somehow put this into the script so it will enter the correct information when the program requests it? Basically that would save me having to type it in over and over again. I tried using echo but that doesn't work within the program I have opened. It only seems to type the information after I have exited the program manually.

Any help would be appreciated or let me know if this is impossible. Thanks!

Post your script so we know what you tried. Also which version of unix? (uname -a will tell you) In the worst case you would need to use the program called "expect" which is available for free. It can fake out any interactive program. Do you have "expect" already? Try "which expect" to find out.