Ignore:
Timestamp:
08/25/06 22:09:49 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7938 r7944  
    3333#
    3434
     35source `dirname $0`/sourcefile
     36printprocesslog "INFO starting $0"
    3537program=makecallistolinks
    36 source `dirname $0`/sourcefile
     38column=fCallisto
    3739
    3840set -C
    3941
    40 callistorcseq=callisto.rc
    41 callistorcnew=callisto_Dec04Jan05.rc
    42 
    43 scriptlogpath=$runlogpath/$program
    44 makedir $scriptlogpath
    45 scriptlog=$scriptlogpath/$program`date +%F`.log
    46 
     42scriptlog=$runlogpath/$program`date +%F`.log
    4743date >> $scriptlog 2>&1
    4844
     
    5147checklock  >> $scriptlog 2>&1
    5248
     49callistorcseq=callisto.rc
     50callistorcnew=callisto_Dec04Jan05.rc
    5351# reason why calibration with standard callisto.rc fails
    5452reason1="Pulse is too much to the right, cannot go beyond logain limits!"
     
    6058then
    6159   echo "nothing to do -> exit"  >> $scriptlog 2>&1
    62    rm -v $lockfile >> $scriptlog 2>&1
     60   finish >> $scriptlog 2>&1
    6361fi
    64 
    65 column=fCallisto
    66 table=SequenceProcessStatus
    6762
    6863cd $mars
    6964
    7065# make links for callisto.rc for which the callisto.log contains reason
     66printprocesslog "INFO linking callisto.rc files"
    7167for file in $files
    7268do
     
    8076      if ! ls -l $callistorc | grep $callistorcnew >> $scriptlog 2>&1
    8177      then
     78         printprocesslog "INFO linking $callistorcnew to $callistorc for sequ $sequ"
    8279         # resetting the calibration
    8380         echo "resetting the callisto for sequence $sequ" >> $scriptlog 2>&1
     
    9087         case $check1 in
    9188            1)   echo " check1=$check1 -> everything ok, callisto has been reset " >> $scriptlog 2>&1
     89                 printprocesslog "INFO resetted calibration successfully for sequence $sequ"
     90                 ;;
     91            0)   echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1
     92                 printprocesslog "WARN connection to DB failed"
     93                 check="no"
    9294                 ;;
    9395            *)   echo " check1=$check1 -> ERROR -> step could not be resetted -> continue " >> $scriptlog 2>&1
    94                  continue ;;
     96                 printprocesslog "ERROR resetcolumn.C failed for fCallisto for sequ $sequ"
     97                 continue
     98                 ;;
    9599         esac
    96100         #linking callisto.rc
     
    100104done
    101105
    102 rm -v $lockfile >> $scriptlog 2>&1
     106finish >> $scriptlog 2>&1
    103107
    104 set +C
    105 
    106 date  >> $scriptlog 2>&1
    107 
Note: See TracChangeset for help on using the changeset viewer.