File indexing completed on 2026-07-16 08:16:46
0001
0002
0003
0004 if [[ $USER == "sphnxpro" ]]
0005 then
0006 BUILD=pro.001
0007 source /opt/sphenix/core/bin/sphenix_setup.sh -n $BUILD
0008 TOPDIR=${PWD}
0009
0010 tobedonedir=${TOPDIR}/SUBMITTED.${BUILD}.$(date +"%Y%m%d%H%M")
0011
0012 SUBMITDIR=${tobedonedir}
0013 elif [[ $USER == "chiu" ]]
0014 then
0015 TOPDIR=/sphenix/user/chiu/sphenix_bbc/run2025/CALIBPRODUCTION/lists
0016 tobedonedir=${TOPDIR}/SUBMITTED.$(date +"%Y%m%d%H%M")
0017 SUBMITDIR=/sphenix/user/chiu/sphenix_bbc/run2025/CALIBPRODUCTION/
0018 fi
0019
0020 mkdir ${tobedonedir}
0021 cd ${tobedonedir}
0022
0023
0024 cd ${SUBMITDIR}
0025 if [[ $USER == "sphnxpro" ]]
0026 then
0027 cp -p ${HOME}/chiu/offline/macros/calibrations/mbd/* .
0028 elif [[ $USER == "chiu" ]]
0029 then
0030 cp -p /sphenix/user/chiu/sphenix_bbc/offline/macros/calibrations/mbd/* .
0031 fi
0032
0033 exit
0034
0035
0036
0037
0038 for fname in ${SUBMITDIR}/runlists/?????.list
0039 do
0040 echo ./submit.sh ./prorun.sh ${fname}
0041 ./submit.sh ./prorun.sh ${fname}
0042
0043 let njobs=$(condor_q | tail -3 | awk '/sphnxpro/ { print $4 }')
0044 while [[ $njobs -gt 900 ]]
0045 do
0046 sleep 300
0047 let njobs=$(condor_q | tail -3 | awk '/sphnxpro/ { print $4 }')
0048 done
0049 done
0050