How make parent to wait from child process?

Hi all,

I am starting mgen5 for sometime depends on input from a file, in a child process. now I want to make parent to wait in this child process till mgen5 finishes, or timeout happens.

could anyone please tell me how to make parent to wait in child process in shell script?

thanks
--girija

man bash :

I cant change parent script what every i need to do is through child. I have access to only child script