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" |
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 |
|
|
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 |
|
|