The parent perl script - parent.pl --------------------------------------- #!/usr/bin/perl print "I AM PARENT\n"; my $x=`/root/a.sh`; #my $x=`/root/b.pl`; #my $x=`/root/a.out`; #my $x=system("/root/a.sh"); print "PARENT EXITING\n"; Child script - a.sh --------------------- #!/bin/sh echo "I am a.sh......." sleep 6000 echo "I am gonna die ........" exit 123 Another child script but which is perl instead of bash - b.pl --------------------------------------------------------------------- #!/usr/bin/perl print "I am b.pl\n"; sleep(6000000); print "I am gonna die...\n";