I have two scripts script_a and script_b. script_a calls script_b. script_b forks two processes. As shown below.
script_a waits for both the parent and child of script_b
`` backticks in perl wait for the command to complete. So if you don't want parent process to wait put in sytem(command &) in background.