Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:08:13

0001 #!/bin/bash
0002 
0003 eval `scramv1 ru -sh`
0004 
0005 HOSTNAME=$(echo `/bin/hostname` | sed 's/\//\\\//g')
0006 echo "The hostname is = $HOSTNAME"
0007 
0008 TEST_PATH=$(echo "${PWD}" | sed 's/\//\\\//g')
0009 echo "The current directory is = $PWD"
0010 
0011 MWC_LIB1="${LOCALRT}/lib/slc3_ia32_gcc323/libDQMRPCMonitorClient.so"
0012 echo "Looking for the RPCMonitorClient library... $MWC_LIB1"
0013 if [ ! -f $MWC_LIB1 ]; then
0014     echo "Not Found! Will pick it up from the release area..."
0015     MWC_LIB1="/afs/cern.ch/cms/Releases/CMSSW/prerelease/${CMSSW_VERSION}/lib/slc3_ia32_gcc323/libDQMRPCMonitorClient.so"
0016 else 
0017     echo "Found!"
0018 fi
0019 
0020 MWC_LIB=$(echo "$MWC_LIB1" | sed 's/\//\\\//g')
0021 echo $MWC_LIB1
0022 
0023 if [ -e profile.xml ]; then
0024     rm profile.xml
0025 fi 
0026 if [ -e MuonDQMClient.xml ]; then
0027     rm MuonDQMClient.xml
0028 fi
0029 if [ -e startMonitorClient ]; then
0030     rm startMonitorClient
0031 fi
0032 
0033 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
0034 sed -e "s/.portn/1972/g" -e "s/.host/${HOSTNAME}/g" -e "s/.pwd/${TEST_PATH}/g" -e "s/.libpath/${MWC_LIB}/g" .MuonDQMClient.xml > MuonDQMClient.xml 
0035 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
0036 
0037 chmod 751 profile.xml
0038 chmod 751 MuonDQMClient.xml
0039 chmod 751 startMonitorClient
0040 
0041 
0042