ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/cbrown/Development/DistributedModelCalculations/Limits/Source/calcLim.sh_template
Revision: 1.1
Committed: Wed Mar 21 21:56:46 2012 UTC (13 years, 1 month ago) by buchmann
Branch: MAIN
CVS Tags: HEAD
Log Message:
Added improved script to run on the grid

File Contents

# User Rev Content
1 buchmann 1.1 #!/bin/bash
2     ############ BATCH QUEUE DIRECTIVES ##############################
3     # Lines beginning with #$ are used to set options for the SGE
4     # queueing system (same as specifying these options to the qsub
5     # command
6    
7     ### Specify the queue on which to run
8     #$ -q all.q
9    
10     ##################################################################
11    
12     export SCRAM_ARCH=slc5_amd64_gcc434
13     source $VO_CMS_SW_DIR/cmsset_default.sh
14    
15     RELEASE=/shome/buchmann/new_development/CMSSW_4_2_8/src/
16    
17     cd $RELEASE
18    
19     eval `scramv1 runtime -sh`
20    
21     REFERENCEDIR=THISDIR
22    
23     cd ${REFERENCEDIR}
24    
25     source /swshare/ROOT/thisroot.sh
26    
27     cd ../../exchange/
28     LOCDIR="$(date +%N)$(date +%N)"
29     mkdir -p $LOCDIR && cd $LOCDIR && mkdir -p output
30     mkdir -p ${REFERENCEDIR}/logs && mkdir -p ${REFERENCEDIR}/output
31    
32    
33     JZBCUT=SETJZBCUT
34     NJOBS=SETNJOBS
35    
36    
37     ${REFERENCEDIR}/LimitWorkerScript.exec $NJOBS $1> ${REFERENCEDIR}/logs/myout_$1.txt 2>${REFERENCEDIR}/logs/myerr_$1.txt
38    
39     mv output/Distributed*.root ${REFERENCEDIR}/output/
40     cd ../
41     rm -r $LOCDIR