![]() |
|
Archives of the TeradataForumMessage Posted: Fri, 03 Dec 2004 @ 13:22:13 GMT
You will need to collect all PIDs and then wait for them to finish:
i=0
for x in usm_pay sp_pay oas69_pay oas89_pay csm_epay vru_epay prem_pay
do
ksh $x.bteq $x $a > logs/$x.log &
a[i]=$!
let i=i+1
done
wait a[0] a[1] ...
Didn't test this code, so it can have some problems with array syntax, but this is the idea Rodrigo Cifuentes
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||