Updated 2019-06-28

multiJobArrays.pbs

#PBS -N arrayTest
#PBS -l nodes=1:ppn=1
#PBS -l walltime=1:00
#PBS -l pmem=2gb
#PBS -q force-6
#PBS -j oe
#PBS -o arrayTest.out
#PBS -t 1-100

cd $PBS_O_WORKDIR
module load python/2.7

# Get Paramters from input.txt file using $PBS_ARRAYID as the line number 
params=`sed -n "${PBS_ARRAYID} p" input.txt`
paramsArray=($params)
i=${paramsArray[0]}
x=${paramsArray[1]}

python multiArrayTest.py $i $x