Changeset 9100 for trunk/MagicSoft/Mars/datacenter/scripts
- Timestamp:
- 08/05/08 17:33:16 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/datacenter/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/condorstatistics
r9073 r9100 64 64 case $check0 in 65 65 1) echo " check0=$check0 -> everything ok -> move files" >> $scriptlog 2>&1 66 printprocesslog "INFO plots successfully produced"66 printprocesslog "INFO condor statistic filled succesfully" 67 67 day=`basename $date` 68 68 cd `dirname $date` … … 79 79 cd $mars 80 80 ;; 81 *) echo " check0=$check0 -> ERROR -> couldn't create plots-> exit" >> $scriptlog 2>&182 printprocesslog "ERROR producing plotsfailed"81 *) echo " check0=$check0 -> ERROR -> couldn't fill condor statistic to DB -> exit" >> $scriptlog 2>&1 82 printprocesslog "ERROR filling condor statistic to DB failed" 83 83 finish >> $scriptlog 2>&1 84 84 ;; -
trunk/MagicSoft/Mars/datacenter/scripts/dbchk
r9068 r9100 163 163 164 164 # CHECK 3 165 echo "Checking if all sequences from Sequences exist sRunData" >> $scriptlog 2>&1165 echo "Checking if all sequences from Sequences exist RunData" >> $scriptlog 2>&1 166 166 sequences=`echo SELECT fSequenceFirst FROM Sequences GROUP BY fSequenceFirst | mymysql` 167 167 for sequence in $sequences … … 177 177 178 178 # CHECK 4 179 echo "Checking if all sequences from RunData exist sin Sequences" >> $scriptlog 2>&1179 echo "Checking if all sequences from RunData exist in Sequences" >> $scriptlog 2>&1 180 180 sequences=`echo SELECT fSequenceFirst FROM RunData WHERE not fSequenceFirst=0 GROUP BY fSequenceFirst | mymysql` 181 181 for sequence in $sequences … … 190 190 done 191 191 192 # CHECK 5 193 echo "Checking if all sequences from RunData exist in SequenceProcessStatus" >> $scriptlog 2>&1 194 sequences=`echo SELECT fSequenceFirst FROM RunData WHERE not fSequenceFirst=0 GROUP BY fSequenceFirst | mymysql` 195 for sequence in $sequences 196 do 197 var=`echo SELECT fSequenceFirst FROM SequenceProcessStatus WHERE fSequenceFirst=$sequence | mymysql` 198 if ! [ "$sequence" = "$var" ] 199 then 200 echo "Sequence $sequence exists in RunData but not in SequenceProcessStatus." >> $scriptlog 2>&1 201 printprocesslog "Sequence $sequence exists in RunData but not in SequenceProcessStatus (DB)." 202 continue 203 fi 204 done 205 192 206 finish >> $scriptlog 2>&1
Note:
See TracChangeset
for help on using the changeset viewer.