Ignore:
Timestamp:
03/06/06 03:06:23 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/makecallistolinks

    r7568 r7572  
    6363for file in $files
    6464do
    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
    7191done
    7292
Note: See TracChangeset for help on using the changeset viewer.