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/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
Note: See TracChangeset for help on using the changeset viewer.