I am trying to run multiple qsub jobs using different parameters:
for i in {1..10}; do qsub -v Size=''$i'' test.sh; done
The contents of the test.sh script are :
#!/bin/bash
#$ -cwd
#$ -S /bin/bash
#$ -N matrix_multiplication
#$ -o output
#$ -e output
TIMEFORMAT=%R
echo "Size of matrix ${Size}"
However, the output file only has two lines:
Size of matrix 9
Size of matrix 1
0
1-8 are not included in the output file.
I can't find where the problem may be.
Any help is greatly appeciated!