ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/FGolf/BatchSubmitCMS2/writeConfig.sh
(Generate patch)

Comparing UserCode/FGolf/BatchSubmitCMS2/writeConfig.sh (file contents):
Revision 1.1 by fgolf, Thu Apr 19 00:46:06 2012 UTC vs.
Revision 1.5 by fgolf, Mon Feb 11 19:40:38 2013 UTC

# Line 2 | Line 2
2  
3   UNIVERSE="grid"
4   EXE="wrapper.sh"
5 < INPUT="wrapper.sh, job_input/input.tgz"
5 > INPUT="wrapper.sh, job_input/input.tgz, appendTimeStamp.sh"
6   SITE="UCSD"
7 < PROXY="/tmp/x509up_u31055"
7 > PROXY="/tmp/x509up_u31032"
8  
9   DIR=$PWD
10 < SUBMITLOGDIR="${DIR}/BatchSubmitCMS2/submit_logs"
11 < JOBLOGDIR="${DIR}/BatchSubmitCMS2/job_logs"
12 < LOGDIR="${DIR}/BatchSubmitCMS2/"
10 > SUBMITLOGDIR="${DIR}/submit_logs"
11 > JOBLOGDIR="${DIR}/job_logs"
12 > LOGDIR="${DIR}/"
13   LOG="${LOGDIR}/submit_logs/condor_`date "+%m_%d_%Y"`.log"
14   OUT="${LOGDIR}/job_logs/1e.\$(Cluster).\$(Process).out"
15   ERR="${LOGDIR}/job_logs/1e.\$(Cluster).\$(Process).err"
# Line 18 | Line 18 | ERR="${LOGDIR}/job_logs/1e.\$(Cluster).\
18   #
19   # prepare input sandbox
20   #
21 <
22 < cd ../
23 < rm ${DIR}/job_input/input.*
24 < tar -czf ${DIR}/job_input/input.tar condor_files/*
21 > g++ sweepRoot.C -o sweepRoot `root-config --cflags --libs`
22 > cd ${DIR}/job_input
23 > rm input.*
24 > mv ../sweepRoot .
25 > tar -czf input.tgz --exclude='*CVS*' *
26   cd ${DIR}
27  
28  
# Line 50 | Line 51 | output=${OUT}
51   error =${ERR}
52   notification=Never
53   x509userproxy=${PROXY}
54 < " > condor_${COPYDIRBASE}.cmd
54 > " > condor_${COPYDIRBASE##*/}.cmd
55  
56      #
57      # now set the rest of the arguments
58      # for each job
59      #
60  
61 <    for FILE in `ls ${DATADIR}/*.root`; do
61 >    if [ -d $DATADIR ]; then
62 >        DATADIR=${DATADIR}/*.root  
63 >    fi
64 >    for FILE in `ls ${DATADIR}`; do
65          echo "
66   executable=${EXE}
67   transfer_executable=True
68   arguments=`echo ${FILE##*/} | sed 's/\.root//g'` ${DATATYPE} ${FILE} ${REALDATA} ${RUNLIST} ${COPYDIR}
69   queue
70 < " >> condor_${COPYDIRBASE}.cmd
70 > " >> condor_${COPYDIRBASE##*/}.cmd
71      done
72  
73 < echo "[writeConfig] wrote condor_${COPYDIRBASE}.cmd"
73 > echo "[writeConfig] wrote condor_${COPYDIRBASE##*/}.cmd"
74  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines