Changeset 17091 for trunk/DataCheck/Processing
- Timestamp:
- 09/06/13 15:48:25 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Processing/CheckRawFilesAvail.sh
r13309 r17091 31 31 rawfile=$rawdata/$night2/$night"_"`printf %03d $runid`".fits.gz" 32 32 failsfile=$failsdir/$night2/$night"_"`printf %03d $runid`".fits.gz" 33 33 34 test -e $rawfile 34 35 check1=$? 35 36 37 query="SELECT fHasDrsFile from RunInfo WHERE fNight="$night" AND fRunID="$runid 38 numdrs=`sendquery` 39 if [ $numdrs -gt 0 ] 40 then 41 drsfile=$rawdata/$night2"/"$night"_"`printf %03d $runid`".drs.fits.gz" 42 failsdrsfile=$failsdir/$night2"/"$night"_"`printf %03d $runid`".drs.fits.gz" 43 test -e $drsfile 44 check3=$? 45 fi 46 36 47 case $check1 in 37 48 0) printprocesslog "INFO found rawfile "$rawfile 49 if [ $numdrs -gt 0 ] 50 then 51 case $check3 in 52 0) printprocesslog "INFO found drsfile "$drsfile 53 ;; 54 *) test -e $failsdrsfile 55 check4=$? 56 case $check4 in 57 0) printprocesslog "INFO found rawfile in "$failsdrsfile 58 # drs file is not in archive for files which are ok 59 check=$check4 60 ;; 61 *) # print warning only for files which are older than $transferdelay days 62 if [ $night -lt $checknight ] 63 then 64 printprocesslog "WARN "$drsfile" and "$failsdrsfile" missing." 65 else 66 printprocesslog "INFO "$drsfile" and "$failsdrsfile" missing." 67 fi 68 check="no" 69 ;; 70 esac 71 esac 72 fi 38 73 ;; 39 74 *) test -e $failsfile
Note:
See TracChangeset
for help on using the changeset viewer.