File indexing completed on 2024-04-06 12:08:45
0001
0002
0003
0004 eval `scramv1 ru -sh`
0005
0006 COLLECTOR_NODE=$1
0007 echo $COLLECTOR_NODE
0008
0009 HOSTNAME=$(echo `/bin/hostname -f` | sed 's/\//\\\//g')
0010 echo "The hostname is = $HOSTNAME"
0011
0012 TEST_PATH=$(echo "${PWD}" | sed 's/\//\\\//g')
0013 echo "The current directory is = $PWD"
0014
0015 LIB_NAME="pluginDQMSiStripMonitorClient.so"
0016 if [ $
0017 LIB_NAME="libDQMSiStripMonitorClient.so"
0018 fi
0019
0020 MWC_LIB1="${LOCALRT}/lib/$SCRAM_ARCH/$LIB_NAME"
0021 echo "Looking for the MonitorWebClient library... $MWC_LIB1"
0022 if [ ! -f $MWC_LIB1 ]; then
0023 echo "Not Found! Will pick it up from the release area..."
0024 MWC_LIB1="${CMSSW_RELEASE_BASE}/lib/slc3_ia32_gcc323/libDQMSiStripMonitorClient.so"
0025 else
0026 echo "Found!"
0027 fi
0028
0029 MWC_LIB=$(echo "$MWC_LIB1" | sed 's/\//\\\//g')
0030 echo $MWC_LIB1
0031
0032 SERVED_DIR="http://${HOSTNAME}:1972/temporary"
0033
0034 if [ -e profile.xml ]; then
0035 rm profile.xml
0036 fi
0037 if [ -e monClient.xml ]; then
0038 rm ClientWithWebInterface.xml
0039 fi
0040 if [ -e startMonitorClient ]; then
0041 rm startMonitorClient
0042 fi
0043
0044 sed -e "s/.portn/1972/g" -e "s/.host/${HOSTNAME}/g" -e "s/.pwd/${TEST_PATH}/g" -e "s/.libpath/${MWC_LIB}/g" .profile.xml > profile.xml
0045 sed -e "s/.portn/1972/g" -e "s/.host/${HOSTNAME}/g" -e "s/.pwd/${TEST_PATH}/g" -e "s/.libpath/${MWC_LIB}/g" -e "s/.collector/${COLLECTOR_NODE}/g" .SiStripClient.xml > SiStripClient.xml
0046 sed -e "s/.portn/1972/g" -e "s/.host/${HOSTNAME}/g" -e "s/.pwd/${TEST_PATH}/g" -e "s/.libpath/${MWC_LIB}/g" .startMonitorClient > startMonitorClient
0047
0048 sed -e "s@SERVED_DIRECTORY_URL@${SERVED_DIR}@g" .WebLib.js > WebLib.js
0049 sed -e "s@.host@${HOSTNAME}@g" .trackermap.txt > trackermap.txt
0050
0051 chmod 751 profile.xml
0052 chmod 751 SiStripClient.xml
0053 chmod 751 startMonitorClient
0054
0055
0056