Changeset 9355 for trunk/MagicSoft/Mars/datacenter/scripts/fillstar
- Timestamp:
- 02/19/09 21:22:19 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/fillstar
r9054 r9355 42 42 set -C 43 43 44 scriptlog=$runlogpath/$program-$datetime.log45 date >> $scriptlog 2>&146 47 44 # check if the 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 … … 65 62 starfile=$path/star$no2.root 66 63 fillstarlogpath=$logpath/$program/$no 67 makedir $fillstarlogpath >> $scriptlog 2>&164 makedir $fillstarlogpath 68 65 fillstarlog=$fillstarlogpath/$program-$sequence.log 69 66 70 echo "run $program for sequence $sequence" >> $scriptlog 2>&1 71 setstatus "start" >> $scriptlog 2>&1 67 setstatus "start" 72 68 73 69 check2=`root -q -b $macrospath/fillstar.C+\("\"$starfile\""\,kFALSE\) | tee $fillstarlog | intgrep` 74 70 case $check2 in 75 1) echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1 76 printprocesslog "INFO done fillstar successfully for sequence $sequence" 71 1) printprocesslog "INFO done fillstar successfully for sequence $sequence (check2=$check2)" 77 72 ;; 78 0) echo " check2=$check2 -> no connection to db -> continue..." >> $scriptlog 2>&1 79 printprocesslog "WARN connection to DB failed" 73 0) printprocesslog "WARN connection to DB failed (check2=$check2)" 80 74 check="no" 81 75 ;; 82 *) echo " check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 83 printprocesslog "ERROR fillstar failed for sequence $sequence" 76 *) printprocesslog "ERROR fillstar failed for sequence $sequence (check2=$check2)" 84 77 com=$Ffillstar 85 78 check=$check2 … … 87 80 esac 88 81 89 setstatus "stop" >> $scriptlog 2>&182 setstatus "stop" 90 83 done 91 84 92 finish >> $scriptlog 2>&185 finish 93 86
Note:
See TracChangeset
for help on using the changeset viewer.