Ignore:
Timestamp:
08/31/18 17:24:07 (6 years ago)
Author:
Daniela Dorner
Message:
usage of check_file_avail function
File:
1 edited

Legend:

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

    r18708 r19201  
    7979
    8080   drstempfile=$auxdir/$runnumber.FAD_CONTROL_TEMPERATURE.fits
    81    if ! [ -e $drstempfile ]
     81   #if ! [ -e $drstempfile ]
     82   if ! check_file_avail $drstempfile
    8283   then
    83       printprocesslog "WARN "$drstempfile" not found."
    84       #echo "WARN "$drstempfile" not found."
     84      #printprocesslog "WARN "$drstempfile" not found."
     85      continue
    8586   else
    8687      tempnumerrors=`fverify $drstempfile 2>/dev/null | grep -o '[0-9][ ]error(s)'  | grep -E -o '[0-9]'`
     
    9899      # get information from rawfile
    99100      rawfile=$ziprawdata/$date/$runnumber"_"`printf %03d $filenum`.fits.fz
    100       if ! [ -e $rawfile ]
     101      #if ! [ -e $rawfile ]
     102      if ! check_file_avail $rawfile
    101103      then
    102          if [ $runnumber -lt $checknight ]
    103          then
    104             printprocesslog "WARN "$rawfile" not found. "$night" "$checknight
    105          else
    106             printprocesslog "INFO "$rawfile" not found."
    107          fi
     104         #if [ $runnumber -lt $checknight ]
     105         #then
     106         #   printprocesslog "WARN "$rawfile" not found. "$night" "$checknight
     107         #else
     108         #   printprocesslog "INFO "$rawfile" not found."
     109         #fi
    108110         continue
    109111      fi
Note: See TracChangeset for help on using the changeset viewer.