Changeset 9355 for trunk/MagicSoft/Mars/datacenter/scripts/checkstardone
- Timestamp:
- 02/19/09 21:22:19 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/checkstardone
r9113 r9355 40 40 column=fStarFilesAvail 41 41 42 scriptlog=$runlogpath/$program-$datetime.log43 date >> $scriptlog 2>&144 45 42 # check if script is already running 46 43 lockfile=$lockpath/lock-$program.txt 47 checklock >> $scriptlog 2>&144 checklock 48 45 49 46 # get todo list 50 gettodo >> $scriptlog 2>&147 gettodo 51 48 52 49 cd $mars … … 55 52 do 56 53 dataset=${primaries[$s]} 57 echo "checking star done for sequences of dataset $dataset..." >> $scriptlog 2>&158 54 printprocesslog "INFO checking star done for sequences of dataset $dataset" 59 55 60 56 outpath=$logpath/$program/`printf %08d $dataset | cut -c 0-5` 61 makedir $outpath >> $scriptlog 2>&157 makedir $outpath 62 58 63 setstatus "start" >> $scriptlog 2>&159 setstatus "start" 64 60 65 61 check1=`root -q -b $macrospath/checkstardone.C+\($dataset\) | tee $outpath/checkstardone-$dataset.log | intgrep` 66 62 67 63 case $check1 in 68 1) echo " check1=$check1 -> everything ok -> continue with next dataset..." >> $scriptlog 2>&1 ;; 69 2) echo " check1=$check1 -> star files for dataset $dataset not yet available -> continue..." >> $scriptlog 2>&1 70 printprocesslog "INFO files not yet available for dataset $dataset" 64 1) printprocesslog "INFO check1=$check1 -> everything ok -> continue with next dataset..." 65 2) printprocesslog "INFO files not yet available for dataset $dataset (check1=$check1)" 71 66 check="no" 72 67 ;; 73 0) echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1 74 printprocesslog "WARN connection to DB failed" 68 0) printprocesslog "WARN connection to DB failed (check1=$check1)" 75 69 check="no" 76 70 ;; 77 *) echo " check1=$check1 -> ERROR checkstardone.C failed for dataset $dataset" >> $scriptlog 2>&1 78 printprocesslog "ERROR checkstardone.C failed for dataset $dataset" 71 *) printprocesslog "ERROR checkstardone.C failed for dataset $dataset (check1=$check1)" 79 72 com=$Fstardone 80 73 check=$check1 … … 82 75 esac 83 76 84 setstatus "stop" >> $scriptlog 2>&177 setstatus "stop" 85 78 done 86 79 87 finish >> $scriptlog 2>&180 finish
Note:
See TracChangeset
for help on using the changeset viewer.