Changeset 17091 for trunk


Ignore:
Timestamp:
09/06/13 15:48:25 (11 years ago)
Author:
Daniela Dorner
Message:
added treatment of drs-files
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Processing/CheckRawFilesAvail.sh

    r13309 r17091  
    3131   rawfile=$rawdata/$night2/$night"_"`printf %03d $runid`".fits.gz"
    3232   failsfile=$failsdir/$night2/$night"_"`printf %03d $runid`".fits.gz"
     33   
    3334   test -e $rawfile
    3435   check1=$?
    3536
     37   query="SELECT fHasDrsFile from RunInfo WHERE fNight="$night" AND fRunID="$runid
     38   numdrs=`sendquery`
     39   if [ $numdrs -gt 0 ]
     40   then
     41      drsfile=$rawdata/$night2"/"$night"_"`printf %03d $runid`".drs.fits.gz"
     42      failsdrsfile=$failsdir/$night2"/"$night"_"`printf %03d $runid`".drs.fits.gz"
     43      test -e $drsfile
     44      check3=$?
     45   fi
     46   
    3647   case $check1 in
    3748      0)   printprocesslog "INFO found rawfile "$rawfile
     49           if [ $numdrs -gt 0 ]
     50           then
     51              case $check3 in
     52                 0) printprocesslog "INFO found drsfile "$drsfile
     53                    ;;
     54                 *) test -e $failsdrsfile
     55                    check4=$?
     56                    case $check4 in
     57                       0)   printprocesslog "INFO found rawfile in "$failsdrsfile
     58                            # drs file is not in archive for files which are ok
     59                            check=$check4
     60                            ;;
     61                       *)   # print warning only for files which are older than $transferdelay days
     62                            if [ $night -lt $checknight ]
     63                            then
     64                               printprocesslog "WARN "$drsfile" and "$failsdrsfile" missing."
     65                            else
     66                               printprocesslog "INFO "$drsfile" and "$failsdrsfile" missing."
     67                            fi
     68                            check="no"
     69                            ;;
     70                    esac
     71              esac
     72           fi
    3873           ;;
    3974      *)   test -e $failsfile
Note: See TracChangeset for help on using the changeset viewer.