Changeset 18212


Ignore:
Timestamp:
06/15/15 00:16:30 (9 years ago)
Author:
Daniela Dorner
Message:
small fix for certaindate check and prepared script to run in LP
File:
1 edited

Legend:

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

    r17906 r18212  
    44printprocesslog "INFO starting "$0
    55
    6 # setup to use ftools
    7 source $HEADAS/headas-init.sh
     6## setup to use ftools
     7#source $HEADAS/headas-init.sh
    88
    99logfile=$runlogpath"/FillRatescan-"$datetime".log"
     
    1616if [ "$certaindate" != "" ]
    1717then
    18    checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`
     18   checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'\|'^[0-9][0-9][0-9]$'`
    1919   if [ "$checkstring" = "" ]
    2020   then
     
    6767      fi
    6868      continue
    69    else
    70       ratescannumerrors=`fverify $ratescanfile 2>/dev/null | grep -o '[0-9][ ]error(s)'  | grep -E -o '[0-9]'`
    71       if [ $ratescannumerrors -gt 0 ]
    72       then
    73          printprocesslog "WARN for $ratescanfile fverify returned "$ratescannumerrors" error(s)."
    74       fi
     69#   else
     70#      ratescannumerrors=`fverify $ratescanfile 2>/dev/null | grep -o '[0-9][ ]error(s)'  | grep -E -o '[0-9]'`
     71#      if [ $ratescannumerrors -gt 0 ]
     72#      then
     73#         printprocesslog "WARN for $ratescanfile fverify returned "$ratescannumerrors" error(s)."
     74#      fi
    7575   fi
    7676
Note: See TracChangeset for help on using the changeset viewer.