Changeset 13309 for trunk/DataCheck


Ignore:
Timestamp:
04/04/12 16:25:44 (13 years ago)
Author:
Daniela Dorner
Message:
added check for /archive/fact/fails/raw
File:
1 edited

Legend:

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

    r13285 r13309  
    77step=RawFileAvailISDC
    88transferdelay=3 #days
     9failsdir=/archive/fact/fails/raw
    910
    1011set -C
     
    2728   setstatus "start"
    2829
    29    rawfile=$rawdata/`echo $night | cut -c 1-4`/`echo $night | cut -c 5-6`/`echo $night | cut -c 7-8`/$night"_"`printf %03d $runid`".fits.gz"
     30   night2=`echo $night | cut -c 1-4`/`echo $night | cut -c 5-6`/`echo $night | cut -c 7-8`
     31   rawfile=$rawdata/$night2/$night"_"`printf %03d $runid`".fits.gz"
     32   failsfile=$failsdir/$night2/$night"_"`printf %03d $runid`".fits.gz"
    3033   test -e $rawfile
    3134   check1=$?
     
    3437      0)   printprocesslog "INFO found rawfile "$rawfile
    3538           ;;
    36       *)   # print warning only for files which are older than $transferdelay days
    37            if [ $night -lt $checknight ]
    38            then
    39               printprocesslog "WARN "$rawfile" missing."
    40            else
    41               printprocesslog "INFO "$rawfile" missing."
    42            fi
    43            check="no"
     39      *)   test -e $failsfile
     40           check2=$?
     41           
     42           case $check2 in
     43              0)   printprocesslog "INFO found rawfile in "$failsfile
     44                   # raw file is not in archive for files which are ok
     45                   check=$check2
     46                   ;;
     47              *)   # print warning only for files which are older than $transferdelay days
     48                   if [ $night -lt $checknight ]
     49                   then
     50                      printprocesslog "WARN "$rawfile" and "$failsfile" missing."
     51                   else
     52                      printprocesslog "INFO "$rawfile" and "$failsfile" missing."
     53                   fi
     54                   check="no"
     55                   ;;
     56           esac
    4457           ;;
    4558   esac
Note: See TracChangeset for help on using the changeset viewer.