Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:08:47

0001 #!/bin/csh
0002 set refnumber=213224
0003 set WebSite='https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/HcalRemoteMonitoring/RMT/'
0004 set WebDir='/afs/cern.ch/cms/CAF/CMSALCA/ALCA_HCALCALIB/HCALMONITORING/RDMweb'
0005 foreach i (`cat LED_LIST/runlist.tmp.2013-11-12_11_37_01`)
0006 set runnumber=`echo ${i} | awk -F _ '{print $1}'`
0007 set j=`cat LED_LIST/runlist.tmp0.2013-11-12_11_37_01 | grep ${runnumber}`
0008 setenv runtype `echo $j | awk -F - '{print $13}'`
0009 setenv runHTML `echo $j | awk -F - '{print $25}' | awk -F 'href=' '{print $2}'`
0010 setenv runday `echo $j | awk -F - '{print $19}'`
0011 setenv runmonth `echo $j | awk -F - '{print $18}'`
0012 setenv runyear `echo $j | awk -F - '{print $17}'`
0013 setenv runtime `echo $j | awk -F - '{print $20}'`
0014 setenv rundate ${runday}"."${runmonth}"."${runyear}
0015 wget ${runHTML} -O index.html.${runnumber}
0016 setenv runNevents `cat index.html.${runnumber} | tail -n +14 | head -n 1 | awk -F '>' '{print $2}' | awk -F '<' '{print $1}'`
0017 echo ${runnumber} ${j} ${runtype}
0018 touch index_draft.html.${runnumber}
0019 set raw=3
0020 echo '<tr>'>> index_draft.html.${runnumber}
0021 echo '<td class="s1" align="center">'ktemp'</td>'>> index_draft.html.${runnumber}
0022 echo '<td class="s'$raw'" align="center">'$runnumber'</td>'>> index_draft.html.${runnumber}
0023 echo '<td class="s'$raw'" align="center">'$runtype'</td>'>> index_draft.html.${runnumber}
0024 echo '<td class="s'$raw'" align="center">'$runNevents'</td>'>> index_draft.html.${runnumber}
0025 echo '<td class="s'$raw'" align="center">'$rundate'</td>'>> index_draft.html.${runnumber}
0026 echo '<td class="s'$raw'" align="center">'$runtime'</td>'>> index_draft.html.${runnumber}
0027 echo '<td class="s'$raw'" align="center">'$refnumber'</td>'>> index_draft.html.${runnumber}
0028 echo '<td class="s'$raw'" align="center"><a href="'$WebSite'/LED_'$runnumber'/MAP.html">LED_'$runnumber'</a></td>'>> index_draft.html.${runnumber}
0029 echo '<td class="s'$raw'" align="center"><a href="'$runHTML'">DetDiag_'$runnumber'</a></td>'>> index_draft.html.${runnumber}
0030 echo '<td class="s'$raw'" align="center">OK</td>'>> index_draft.html.${runnumber}
0031 echo '</tr>'>> index_draft.html.${runnumber}
0032 mv $WebDir/LED_$runnumber/index_draft.html $WebDir/LED_$runnumber/index_draft.html.orig
0033 cp index_draft.html.${runnumber} $WebDir/LED_$runnumber/index_draft.html
0034 end
0035 
0036