Ignore:
Timestamp:
02/19/09 21:22:19 (16 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r9107 r9355  
    4141set -C
    4242
    43 scriptlog=$runlogpath/$program`date +%F`.log
    44 date >> $scriptlog 2>&1
    45 
    4643# check if script is already running
    4744lockfile=$lockpath/lock-$program.txt
    48 checklock  >> $scriptlog 2>&1
     45checklock
    4946
    5047callistorcseq=callisto.rc
     
    5653if [ ${#primaries[@]} -eq 0 ]
    5754then
    58    echo "nothing to do -> exit"  >> $scriptlog 2>&1
    59    finish >> $scriptlog 2>&1
     55   printprocesslog "INFO nothing to do -> exit"
     56   finish
    6057fi
    6158num=`expr ${#primaries[@]} / 2 `
     
    6966   telnum=${primaries[$s+$s+1]}
    7067   callistorc=$datapath/callisto/`printf %08d $sequence | cut -c 0-4`/`printf %08d $sequence`/$callistorcseq
    71    if ! ls -l $callistorc 2>/dev/null | grep $callistorcnew >> $scriptlog 2>&1
     68   if ! ls -l $callistorc 2>/dev/null | grep $callistorcnew
    7269   then
    7370      printprocesslog "INFO linking $callistorcnew to $callistorc for sequ $sequence"
    7471      # resetting the calibration
    75       echo "resetting the callisto for sequence $sequence" >> $scriptlog 2>&1
     72      printprocesslog "INFO resetting the callisto for sequence $sequence"
    7673
    7774      query="UPDATE SequenceProcessStatus set fStartTime=NULL, fFailedTime=NULL, fProgramId=NULL, fReturnCode=NULL where fSequenceFirst=$sequence and fTelescopeNumber=$telnum"
    78       if ! sendquery >> $scriptlog 2>&1
     75      if ! sendquery
    7976      then
    8077         printprocesslog "ERROR resetting calibration failed for sequence $sequence"
     
    8582     
    8683      #linking callisto.rc
    87       if ln -vfs $setuppath/callisto/$callistorcnew $callistorc >> $scriptlog 2>&1
     84      if ln -vfs $setuppath/callisto/$callistorcnew $callistorc
    8885      then
    8986         printprocesslog "INFO link callisto.rc successfully for sequence $sequence"
     
    9592done
    9693
    97 finish >> $scriptlog 2>&1
     94finish
    9895
Note: See TracChangeset for help on using the changeset viewer.