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.3 by fgolf, Fri Apr 20 20:03:35 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_u31032"
8  
# Line 18 | Line 18 | ERR="${LOGDIR}/job_logs/1e.\$(Cluster).\
18   #
19   # prepare input sandbox
20   #
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  
# Line 56 | Line 58 | x509userproxy=${PROXY}
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
# Line 65 | Line 70 | queue
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