25 |
|
tar -czf input.tgz --exclude='*CVS*' * |
26 |
|
cd ${DIR} |
27 |
|
|
28 |
< |
|
29 |
< |
DATATYPE=$1 |
30 |
< |
REALDATA=$2 |
31 |
< |
RUNLIST=$3 |
32 |
< |
DATADIR=$4 |
33 |
< |
COPYDIRBASE=$5 |
34 |
< |
COPYDIR=/hadoop/cms/store/user/$USER/${COPYDIRBASE} |
28 |
> |
# |
29 |
> |
# arguments to run the script |
30 |
> |
# |
31 |
> |
SAMPLE="$1" |
32 |
> |
ATYPE="$2" |
33 |
> |
RUNLIST="$3" |
34 |
> |
OPTIONS="$4" |
35 |
> |
DATADIR="$5" |
36 |
> |
COPYDIRBASE="$6" |
37 |
> |
COPYDIR="/hadoop/cms/store/user/$USER/${COPYDIRBASE}" |
38 |
|
|
39 |
|
# |
40 |
|
# write configuration |
68 |
|
echo " |
69 |
|
executable=${EXE} |
70 |
|
transfer_executable=True |
71 |
< |
arguments=`echo ${FILE##*/} | sed 's/\.root//g'` ${DATATYPE} ${FILE} ${REALDATA} ${RUNLIST} ${COPYDIR} |
71 |
> |
arguments=\"`echo ${FILE##*/} | sed 's/\.root//g'` ${FILE} ${SAMPLE} ${ATYPE} ${RUNLIST} ${OPTIONS} ${COPYDIR}\" |
72 |
|
queue |
73 |
|
" >> condor_${COPYDIRBASE##*/}.cmd |
74 |
|
done |
75 |
|
|
76 |
|
echo "[writeConfig] wrote condor_${COPYDIRBASE##*/}.cmd" |
74 |
– |
|