invloking another script accepting input

hi
I am trying to invoke another application script from my script like
---------------------------
main
.
.
./new appl <<EOF
Input 1
Input 2

EOF
.
.
exit
------------------------
But is exits the new application after input command 2, I want that it should not exit and accept further commands from standard input.
Input commands 1 and 2 depends on variable values of main script, so can't be entered manually.

Please help.

Thanks in advance.
Ashish

thanks.

Hi

I got solution from ITtoolbox.com. It can be done as

{
printf "%s \n" "INPUT 1"
printf "%s \n" "INPUT 2"
cat
} | newscript

regards,
Ashish