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