Need to stop script for until present command excuted

Hi,

Basically I am running a script in another script.

#!/bin/sh
DIRECTORY="/export/home/scripts"
CURDATIME=`date '+%m%d%y_%H%M%S'`
LOG_FILE="${DIRECTORY}/${CURDATIME}_abc.out"

echo "ABC Delta Script started at `${CURDATIME}`" > $LOG_FILE
cd ${DIRECTORY}
sh ./abcDeltaRun.sh  >> $LOG_FILE
echo "ABC Delta Script Ended at `${CURDATIME}`" >> $LOG_FILE

abcDeltaRun.sh will take approximately 2 days.
But it going to the next step immediately after the initiating the script.
When I look for the pid for that script is shows it is running.

Can you help me how to stop to go to next step after the abc script has initiated.
I want to check if the that pid is running every one hr and if it is there check after 1 hr otherwise continue with the next steps.

Regards
Rao

abcDeltaRun.sh must be forking and daemonizing itself.

I suppose you could

while ps aux | grep abcDeltaRun
do
        sleep 60
done