Changeset 13309 for trunk/DataCheck
- Timestamp:
- 04/04/12 16:25:44 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Processing/CheckRawFilesAvail.sh
r13285 r13309 7 7 step=RawFileAvailISDC 8 8 transferdelay=3 #days 9 failsdir=/archive/fact/fails/raw 9 10 10 11 set -C … … 27 28 setstatus "start" 28 29 29 rawfile=$rawdata/`echo $night | cut -c 1-4`/`echo $night | cut -c 5-6`/`echo $night | cut -c 7-8`/$night"_"`printf %03d $runid`".fits.gz" 30 night2=`echo $night | cut -c 1-4`/`echo $night | cut -c 5-6`/`echo $night | cut -c 7-8` 31 rawfile=$rawdata/$night2/$night"_"`printf %03d $runid`".fits.gz" 32 failsfile=$failsdir/$night2/$night"_"`printf %03d $runid`".fits.gz" 30 33 test -e $rawfile 31 34 check1=$? … … 34 37 0) printprocesslog "INFO found rawfile "$rawfile 35 38 ;; 36 *) # print warning only for files which are older than $transferdelay days 37 if [ $night -lt $checknight ] 38 then 39 printprocesslog "WARN "$rawfile" missing." 40 else 41 printprocesslog "INFO "$rawfile" missing." 42 fi 43 check="no" 39 *) test -e $failsfile 40 check2=$? 41 42 case $check2 in 43 0) printprocesslog "INFO found rawfile in "$failsfile 44 # raw file is not in archive for files which are ok 45 check=$check2 46 ;; 47 *) # print warning only for files which are older than $transferdelay days 48 if [ $night -lt $checknight ] 49 then 50 printprocesslog "WARN "$rawfile" and "$failsfile" missing." 51 else 52 printprocesslog "INFO "$rawfile" and "$failsfile" missing." 53 fi 54 check="no" 55 ;; 56 esac 44 57 ;; 45 58 esac
Note:
See TracChangeset
for help on using the changeset viewer.