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/checkstardone

    r9113 r9355  
    4040column=fStarFilesAvail
    4141
    42 scriptlog=$runlogpath/$program-$datetime.log
    43 date >> $scriptlog 2>&1
    44 
    4542# check if script is already running
    4643lockfile=$lockpath/lock-$program.txt
    47 checklock  >> $scriptlog 2>&1
     44checklock
    4845
    4946# get todo list
    50 gettodo  >> $scriptlog 2>&1
     47gettodo
    5148
    5249cd $mars
     
    5552do
    5653   dataset=${primaries[$s]}
    57    echo "checking star done for sequences of dataset $dataset..." >> $scriptlog 2>&1
    5854   printprocesslog "INFO checking star done for sequences of dataset $dataset"
    5955
    6056   outpath=$logpath/$program/`printf %08d $dataset | cut -c 0-5`
    61    makedir $outpath  >> $scriptlog 2>&1
     57   makedir $outpath
    6258
    63    setstatus "start" >> $scriptlog 2>&1
     59   setstatus "start"
    6460
    6561   check1=`root -q -b $macrospath/checkstardone.C+\($dataset\) | tee $outpath/checkstardone-$dataset.log | intgrep`
    6662
    6763   case $check1 in
    68       1)   echo " check1=$check1 -> everything ok -> continue with next dataset..." >> $scriptlog 2>&1 ;;
    69       2)   echo " check1=$check1 -> star files for dataset $dataset not yet available -> continue..." >> $scriptlog 2>&1
    70            printprocesslog "INFO files not yet available for dataset $dataset"
     64      1)   printprocesslog "INFO check1=$check1 -> everything ok -> continue with next dataset..."
     65      2)   printprocesslog "INFO files not yet available for dataset $dataset (check1=$check1)"
    7166           check="no"
    7267           ;;
    73       0)   echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1
    74            printprocesslog "WARN connection to DB failed"
     68      0)   printprocesslog "WARN connection to DB failed (check1=$check1)"
    7569           check="no"
    7670           ;;
    77       *)   echo " check1=$check1 -> ERROR checkstardone.C failed for dataset $dataset" >> $scriptlog 2>&1
    78            printprocesslog "ERROR checkstardone.C failed for dataset $dataset"
     71      *)   printprocesslog "ERROR checkstardone.C failed for dataset $dataset (check1=$check1)"
    7972           com=$Fstardone
    8073           check=$check1
     
    8275   esac
    8376
    84    setstatus "stop" >> $scriptlog 2>&1
     77   setstatus "stop"
    8578done
    8679
    87 finish >> $scriptlog 2>&1
     80finish
Note: See TracChangeset for help on using the changeset viewer.