File indexing completed on 2024-04-06 12:06:27
0001
0002 set DAT=`date '+%Y-%m-%d_%H_%M_%S'`
0003 set RELEASE=${CMSSW_VERSION}
0004 echo ${CMSSW_VERSION} ${RELEASE}
0005 set WebDir='/eos/cms/store/group/dpg_hcal/comm_hcal/www/HcalRemoteMonitoring/RMT'
0006 set WD="/afs/cern.ch/cms/CAF/CMSALCA/ALCA_HCALCALIB/HCALMONITORING/RDMScript/${RELEASE}/src/DPGAnalysis/HcalTools/scripts/rmt"
0007
0008 xrdcp ${WebDir}/index.html index.html.orig.${DAT}
0009 touch ${WD}/index_test.html
0010 set j = 1
0011 foreach i (`cat tmp.list.LED`)
0012 echo ${i}
0013 set RUN=`echo ${i} | awk -F _ '{print $1}'`
0014 echo ${RUN}
0015 ls ${WebDir}/LED_${RUN}/*.png > /dev/null
0016 if(${status} == "0") then
0017 tail -12 ${WebDir}/LED_${RUN}/index_draft.html > tmp.txt
0018 cat tmp.txt | sed s/ktemp/${j}/ >> ${WD}/index_test.html
0019 @ j = ${j} + "1"
0020 rm tmp.txt
0021 endif
0022 end
0023
0024 set NHEAD=`grep -n 'LED Runs' index.html.orig.${DAT} | awk -F : '{print $1}'`
0025 @ NHEAD = ${NHEAD} + "13"
0026 head -n ${NHEAD} ${WD}/index.html.orig.${DAT} > ${WD}/myindex_head
0027 cat ${WD}/index_test.html >> ${WD}/myindex_head
0028
0029 set NTAIL=`cat ${WD}/index.html.orig.${DAT} | wc -l`
0030
0031 set NLASER=`grep -n 'LASER Runs' index.html.orig.${DAT} | awk -F : '{print $1}'`
0032
0033 set k = ${j}
0034
0035 cat ${WD}/index.html.orig.${DAT} | awk -F \" '2 == /s1/ {print $0}'
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064