File indexing completed on 2024-04-06 12:08:54
0001
0002
0003
0004
0005 set -o nounset
0006
0007 echo "====> Starting CondDB(Quality) cron job at $(date)<===="
0008
0009 DEBUG=1
0010 PROGNAME=/home/cmstacuser/CMSSWReleasesForCondDB/CMSSW_2_1_12/src/RunCondDBOffline21X_QualityOnly.sh
0011
0012 COMMAND=cmsRun
0013 let "count = $(ps --no-headers -l -C $COMMAND | wc -l)"
0014 if [ "$count" -gt 0 ]; then
0015 cmdrunning=$(ps --no-headers -C $COMMAND -o cmd)
0016 if echo $cmdrunning | grep "log21X/MainCfg" > /dev/null
0017 then
0018 if [ $DEBUG -gt 0 ]; then
0019 echo Time: $(date '+%D-%T') Caller: $(basename $0) - $COMMAND already running ...
0020 ps --columns 180 --no-headers -fl -C $COMMAND | grep "log21X/Main"
0021 fi
0022 echo "====> EXIT <===="
0023 exit 1
0024 fi
0025 fi
0026
0027 $PROGNAME
0028 status=$?
0029 echo -- Finished at $(date) with status=$status --
0030 exit $status
0031 echo ----