[torqueusers] question about submitting multiple jobs (a.k.a job array)

Mahmood Naderan nt_mahmood at yahoo.com
Thu Aug 4 05:44:39 MDT 2011


Hi
I am looking for some example to submit multiple jobs as stated in http://www.clusterresources.com/torquedocs21/2.1jobsubmission.shtml#jobarrays

For example, I have to jobs:
job1 >>
#PBS -q Q1
cd $PBS_O_WORKDIR
./run -bench1

job2 >>
#PBS -q Q2
cd $PBS_O_WORKDIR
./run -bench2

Normally I use 

qsub job1
qsub job2


Now I want to submit them with one qsub command.
It is stated that I have to use "qsub -t 0-1 submit_script.sh"
I want to know what is the content of "submit_script.sh" ?
Is it

#PBS -q Q1
cd $PBS_O_WORKDIR
./run -bench1#PBS -q Q2 
cd $PBS_O_WORKDIR
./run -bench2

?
Thanks,

// Naderan *Mahmood;


More information about the torqueusers mailing list