Calling multiple scripts from another scripts

Dear all,

I am working on script which call other shell scripts in a loop but problem is from second script am not able to come out.

Here is the snippet:-

 
#!/bin/bash
HSFILE=/root/Test/Components.txt
LOGFile=/opt/domain/AdminDomain/application/logs
PATH=/opt/domain/AdminDomain/application
while IFS=":" read Prjcnm Arcnm 
do
echo "ProjectName is $Prjcnm ArchiveName is $Arcnm"
if [ -d "$PATH/$Prjcnm" ]; then 
source /opt/domain/AdminDomain/application/$Prjcnm/$Arcnm.sh 
fi
done < $HSFILE

Note:- I dont have control on the second script because it is dynamically getting generated to start / stop deployed applications.

Cant you start it in background? and what do you mean by "not able to come out from second script" mean?

I mean it just read the first project name and archive name and start it in the same shell. So it executes the second script properly and start the application but my expectation is start the first application than second after that and third and so on depends upon the input mentioned in components.txt.

Is there any way to run the script in background or in some other shell so that in primary shell it will be running the first script only.

Yes.. If you run the script in nohup and background you can proceed to the next parameters in your while loop.

Nohup <<script>> &