Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:07:40

0001 #!/bin/tcsh
0002 
0003 if ( $CMSSW_BASE == '')then
0004     source $HOME/scripts/cmsStart.sh
0005 endif
0006 
0007 set dqmpid = `ps aux | awk '{ if( $12 == "dqm_source.cfg") print $2  endif }'`
0008 
0009 if ( $1 == "kill" ) then
0010     if( $dqmpid == '') then
0011         echo "HLX DQM Source not started"
0012     else
0013         echo "Killing HLX DQM Source"
0014         kill -9 $dqmpid
0015     endif
0016 else if( $1 == "start" ) then
0017     if (  $dqmpid == '' ) then
0018         echo "starting HLX DQM Source"
0019         cd ${CMSSW_BASE}/src/DQM/HLXMonitor/test
0020         cmsRun hlxmonitor.cfg &
0021     endif
0022 else if( $1 == "stayon" )then
0023         while( 1 == 1 )
0024             HLXMonitor start
0025             sleep 10
0026         end
0027     endif
0028 endif