Search Results

Search: Posts Made By: japetmendoza
3,974
Posted By japetmendoza
try this, at the end of the parent script ...
try this, at the end of the parent script

value=`ps -ef | egrep '(a|b|c|d|e|f).sh'`
while [ ! -z "${value}" ]
do
echo child scripts are still running
done
3,974
Posted By japetmendoza
you may want to use while statement.. value=`ps...
you may want to use while statement..
value=`ps -ef | egrep '(a|b|c|d|e|f).sh'
while [ ! -z "${value}" ]
do
echo child scripts are still running
done

HTH
4,987
Posted By japetmendoza
Hi Srini, grep -v 'grep' would tend to...
Hi Srini,

grep -v 'grep' would tend to filter the process output, not to include grep process.. Remember that it may be included as a process, and would confusions. So to be safe, that was added...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 09:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy