Ignore:
Timestamp:
03/29/12 10:03:53 (13 years ago)
Author:
Daniela Dorner
Message:
give only warning if files older than some days are missing
File:
1 edited

Legend:

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

    r13153 r13285  
    66program=CheckRawFilesAvail
    77step=RawFileAvailISDC
     8transferdelay=3 #days
    89
    910set -C
     
    2122   night=${primaries[$s+$s]}
    2223   runid=${primaries[$s+$s+1]}
     24   currentnight=`date +%Y%m%d`
     25   checknight=`echo " $currentnight - $transferdelay " | bc -l`
    2326   
    2427   setstatus "start"
     
    2932
    3033   case $check1 in
    31       1)   printprocesslog "WARN "$rawfile" missing."
     34      0)   printprocesslog "INFO found rawfile "$rawfile
     35           ;;
     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
    3243           check="no"
    33            ;;
    34       0)   printprocesslog "INFO found rawfile "$rawfile
    3544           ;;
    3645   esac
Note: See TracChangeset for help on using the changeset viewer.