Submit CMSSW Jobs Using PBS

1. change to bash shell

bash

2. set up the arch as slc5

export SCRAM_ARCH=slc5_ia32_gcc434

 

3. set up the cms environment

source /apps/02/cmssoft/cms/cmsset_default.sh 
or 
source /apps/02/purdueCMS/cmsset_default.sh

 

4. go to directory to CMSSW_version/src 

cd CMSSW_version/src 

 

5. make sure the executable file cmsRun linked

scram runtime -sh 

 

6. change the CMSSW version, working directory, output directory and email address inside the job_template_cmssw, put this file under the directory where you want to submit job.  

7.  create createjobs, change mode to o+rwx

8. submit the job to PBS

./createjobs.sh jobname #event #job #submitjob cfgfilename nameofcluster

 

9. check PBS job status

qstat cms