For example, let me call the external program as prog_name.
Welcome to the program prog_name.
Feed you name: ABCD
Hello ABCD, please feed some additional inputs.
Your age ? 25
Place of birth : sdbfgf
Country living in:jkhfds
Thanks for the information you provided.
Would you like to disclose your phone number(y or enter key for yes):
Please enter you phone number :000000000
Thank you..... all your data are saved.
Suppose the external program works like that.
Then let me make an input file with following contents
Now I need a script to feed these inputs to the program as it asks.
Hope you understood my point.