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
Location:
trunk/DataCheck/Processing
Files:
2 edited

Legend:

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

    r13055 r13285  
    66program=CheckAuxFilesAvail
    77step=AuxFilesAvailISDC
     8transferdelay=3 #days
    89
    910set -C
     
    2021do
    2122   night=${primaries[$s]}
     23   currentnight=`date +%Y%m%d`
     24   checknight=`echo " $currentnight - $transferdelay " | bc -l`
    2225   
    2326   setstatus "start"
     
    4750      0)   printprocesslog "INFO found auxfiles for night "$night"."
    4851           ;;
    49       *)   printprocesslog "WARN "$totalcheck" auxiliary files missing ("$totalcheck2") for night "$night"."
    50            check=$totalcheck2
     52      *)   if [ $night -lt $checknight ]
     53           then
     54              printprocesslog "WARN "$totalcheck" auxiliary files missing ("$totalcheck2") for night "$night"."
     55              check=$totalcheck2
     56           else
     57              check="no"
     58              printprocesslog "INFO "$totalcheck" auxiliary files missing ("$totalcheck2") for night "$night"."
     59           fi
    5160           ;;
    5261   esac
  • 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.