View Single Post
Old 06-29-2012, 03:01 AM   #5
alec
Member
 
Location: Cambridge, MA

Join Date: Apr 2011
Posts: 18
Default

You'll probably find it more convenient to use a single job array than submitting many jobs in a loop.
In your launch script do a single qsub:
qsub -t 0-$[${#result[@]}-1] test.sh
In test.sh the environment variable PBS_ARRAYID tells you which job is running:
i1=${result[$PBS_ARRAYID]}
alec is offline   Reply With Quote