When running a number of jobs in the background -- I run this in the foreground:
::/apps/datamodules/_SQL> jobs
::/apps/datamodules/_SQL> cat ../_CMD/wait_while_jobs_are_running.ksh
export jr=`jobs|grep -c "Running"`
while [[ $jr -ne 0 ]];do
sleep 30
export jr=`jobs|grep -c "Running"`
done
...it basically sleeps 30 seconds until there are no more running jobs.
No comments:
Post a Comment