Ignore:
Timestamp:
03/02/14 13:41:25 (11 years ago)
Author:
Daniela Dorner
Message:
give warning about missing files only when runinfo in DB available
File:
1 edited

Legend:

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

    r17596 r17597  
    4444   fi
    4545   
    46    rawdir=$rawdata/$date
    47    # check if raw files are available from that night
    48    if ! [ -d $rawdir ]
    49    then
    50       logtext="INFO"
    51    else
    52       logtext="WARN"
    53    fi
    54 
    5546   ratescanfile=$auxdir/$runnumber.RATE_SCAN_DATA.fits
    5647   printprocesslog "INFO processing "$ratescanfile
     
    5849   if ! [ -e $ratescanfile ]
    5950   then
    60       printprocesslog $logtext" "$ratescanfile" not found."
     51      rawdir=$rawdata/$date
     52      # check if raw files are available from that night
     53      if ! [ -d $rawdir ]
     54      then
     55         printprocesslog "INFO "$ratescanfile" not found."
     56      else
     57         printprocesslog "WARN "$ratescanfile" not found."
     58      fi
    6159      continue
    6260   else
Note: See TracChangeset for help on using the changeset viewer.