ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/cbrown/Development/DistributedModelCalculations/ShapeLimits/Source/ShapeLimWorker.sh_template
Revision: 1.2
Committed: Fri Apr 27 13:48:15 2012 UTC (13 years ago) by buchmann
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
Error occurred while calculating annotation data.
Log Message:
Updated run script; not submitting to short queue as the average job may take an hour or more

File Contents

# Content
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 cd /shome/buchmann/new_development/V020500/CMSSW_4_2_8/src/
16
17 eval `scramv1 runtime -sh`
18
19 REFERENCEDIR=THISDIR
20
21 cd ${REFERENCEDIR}
22
23 source /swshare/ROOT/thisroot.sh
24
25 cd ../../exchange/
26 LOCDIR="$(date +%N)$(date +%N)"
27 mkdir -p $LOCDIR && cd $LOCDIR && mkdir -p output
28 mkdir -p ${REFERENCEDIR}/logs && mkdir -p ${REFERENCEDIR}/output
29
30
31 JZBCUT=SETJZBCUT
32 NJOBS=SETNJOBS
33 SYSTFILE=SETSYSTFILE
34
35 ${REFERENCEDIR}/ShapeWorkerScript.exec $NJOBS $1 > ${REFERENCEDIR}/logs/myout_$1.txt 2>${REFERENCEDIR}/logs/myerr_$1.txt
36 retval=$?
37
38 if [ $? -gt 0 ]; then
39 echo "ERROR"
40 else
41 mv output/Distributed*.root ${REFERENCEDIR}/output/
42 echo "Have transferred output file from `pwd`/output/ to ${REFERENCEDIR}/output/"
43 fi
44 cd ../
45 echo "Now in `pwd` and going to delete $LOCDIR"
46 rm -r $LOCDIR
47 echo "Done."
48
49