2021年3月16日星期二

Redirect multiple qsub job results to a single file

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 10

1-8 are not included in the output file. I can't find where is the problem. Any help is greatly appeciated! Thanks!

https://stackoverflow.com/questions/66666862/redirect-multiple-qsub-job-results-to-a-single-file March 17, 2021 at 12:07PM

没有评论:

发表评论