Changeset 7572 for trunk/MagicSoft
- Timestamp:
- 03/06/06 03:06:23 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7571 r7572 24 24 - improved layout 25 25 26 * datacenter/script/makecallistolinks: 27 - changed condition, when to make the link: only, if the link is 28 not yet existing, it is done 29 - added resetting of db: if link is done, callisto is resetted 30 31 * datacenter/macros/resetcolumn.C: 32 - added failure columns to the resetting 33 26 34 27 35 -
trunk/MagicSoft/Mars/datacenter/macros/resetcolumn.C
r7528 r7572 106 106 //build query and reset columns 107 107 TString query(Form("Update %s SET %s=NULL ", table.Data(), column.Data())); 108 query+=", fStartTime=NULL, fFailedTime=NULL, fReturnCode=NULL, fFailedCode=NULL, fFailedCodeAdd=NULL "; 108 109 109 110 TIter Next(&l); -
trunk/MagicSoft/Mars/datacenter/scripts/makecallistolinks
r7568 r7572 63 63 for file in $files 64 64 do 65 pulse=`cat $file | grep "$reason1\|$reason2"` >> $scriptlog 2>&1 66 if [ ! "$pulse" = "" ] 67 then 68 path=`dirname $file` >> $scriptlog 2>&1 69 ln -vfs $setuppath/callisto/$callistorcnew $path/$callistorcseq >> $scriptlog 2>&1 70 fi 65 pulse=`cat $file | grep "$reason1\|$reason2"` >> $scriptlog 2>&1 66 sequ=`echo $file | cut -d/ -f6` 67 68 if [ ! "$pulse" = "" ] 69 then 70 if ! ls -l $callistorcseq | grep $callistorcnew >> $scriptlog 2>&1 71 then 72 # resetting the calibration 73 echo "resetting the callisto for sequence $sequ" >> $scriptlog 2>&1 74 resetlogpath=$logpath/resetcallisto 75 echo "resetlogpath: $resetlogpath" >> $scriptlog 2>&1 76 makedir $resetlogpath >> $scriptlog 2>&1 77 resetlog=$resetlogpath/reset-callisto-$sequ.log 78 79 check1=`root -q -b $macrospath/resetcolumn.C+\("\"fCallisto\""\,"\"SequenceProcessStatus\""\,"\"$sequ\""\,"\"$sequ\""\,kFALSE\) | tee $resetlog | grep int | sed -e 's/(int)//'` 80 case $check1 in 81 1) echo "check1=$check1 -> everything ok, callisto has been reset " >> $scriptlog 2>&1 82 ;; 83 *) echo "check1=$check1 -> ERROR -> step could not be resetted -> continue " >> $scriptlog 2>&1 84 continue ;; 85 esac 86 #linking callisto.rc 87 path=`dirname $file` >> $scriptlog 2>&1 88 ln -vfs $setuppath/callisto/$callistorcnew $path/$callistorcseq >> $scriptlog 2>&1 89 fi 90 fi 71 91 done 72 92
Note:
See TracChangeset
for help on using the changeset viewer.