Changeset 9355 for trunk/MagicSoft/Mars/datacenter/scripts/fillganymed
- Timestamp:
- 02/19/09 21:22:19 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/fillganymed
r9133 r9355 42 42 set -C 43 43 44 scriptlog=$runlogpath/$program-$datetime.log45 date >> $scriptlog 2>&146 47 44 # check if script is already running 48 45 lockfile=$lockpath/lock-$program.txt 49 checklock >> $scriptlog 2>&146 checklock 50 47 51 48 # get todo list 52 gettodo >> $scriptlog 2>&149 gettodo 53 50 54 51 cd $mars … … 64 61 ganymedfile=$path/ganymed$no2.root 65 62 fillganymedlogpath=$logpath/$program/$no 66 makedir $fillganymedlogpath >> $scriptlog 2>&163 makedir $fillganymedlogpath 67 64 fillganymedlog=$fillganymedlogpath/$program-$dataset.log 68 65 69 echo "run $program for dataset $dataset" >> $scriptlog 2>&170 setstatus "start" >> $scriptlog 2>&166 printprocesslog "INFO run $program for dataset $dataset" 67 setstatus "start" 71 68 72 69 check2=`root -q -b $macrospath/fillganymed.C+\("\"$ganymedfile\""\,kFALSE\) | tee $fillganymedlog | intgrep` 73 70 case $check2 in 74 1) echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1 75 printprocesslog "INFO done fillganymed successfully for dataset $dataset" 71 1) printprocesslog "INFO done fillganymed successfully for dataset $dataset (check2=$check2)" 76 72 ;; 77 0) echo " check2=$check2 -> no connection to db -> continue..." >> $scriptlog 2>&1 78 printprocesslog "WARN connection to DB failed" 73 0) printprocesslog "WARN connection to DB failed (check2=$check2)" 79 74 check="no" 80 75 ;; 81 *) echo " check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 82 printprocesslog "ERROR fillganymed failed for dataset $datset" 76 *) printprocesslog "ERROR fillganymed failed for dataset $datset (check2=$check2)" 83 77 com=$Ffillganymed 84 78 check=$check2 … … 86 80 esac 87 81 88 setstatus "stop" >> scriptlog 2>&182 setstatus "stop" 89 83 done 90 84 91 finish >> $scriptlog 2>&185 finish 92 86
Note:
See TracChangeset
for help on using the changeset viewer.