how to qsub job iteratively?
Let a variable i=2:10, for each i, I would like to run "tmp.r" and to pause 10 seconds before going to the next i. And my script name is test.pbs. I tried this:
for i in `seq 1 10`;do;qsub job$i.sub;sleep 10;done
but this submitted job will return immediately ..
I would like to run this on Cray XE6. My R code uses a traversal algorithm, so iterative submission of jobs will make it more efficient.
Any idea how to do this with bash or python?
Thanks!