Changeset 9355 for trunk/MagicSoft/Mars/datacenter/scripts/doexclusions
- Timestamp:
- 02/19/09 21:22:19 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/doexclusions
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 … … 59 56 date=${primaries[$s+$s]} 60 57 telnum=${primaries[$s+$s+1]} 61 echo "do exclusions for date "$date >> $scriptlog 2>&1 62 printprocesslog "INFO do exclusions for $date" 58 printprocesslog "INFO do exclusions for $date $date" 63 59 year2=`echo $date | cut -c 1-4` 64 60 doexclusionspath=$logpath/$program/$year2 65 makedir $doexclusionspath >> $scriptlog 2>&161 makedir $doexclusionspath 66 62 doexclusionslog=$doexclusionspath/doexclusions-$date.log 67 63 68 setstatus "start" >> $scriptlog 2>&164 setstatus "start" 69 65 70 66 check1=`root -q -b $macrospath/doexclusions.C+\("\"$date\""\,$telnum\,kFALSE\) | tee $doexclusionslog | intgrep` 71 67 72 68 case $check1 in 73 1) echo " check1=$check1 -> everything ok -> setting status..." >> $scriptlog 2>&1 74 printprocesslog "INFO exclusions successfully done for $date" 69 1) printprocesslog "INFO exclusions successfully done for $date (check1=$check1)" 75 70 ;; 76 0) echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1 77 printprocesslog "WARN connection to DB failed" 71 0) printprocesslog "WARN connection to DB failed (check1=$check1)" 78 72 check="no" 79 73 ;; 80 *) echo " check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 81 printprocesslog "ERROR $program.C failed" 74 *) printprocesslog "ERROR $program.C failed (check1=$check1)" 82 75 com=$Fdoexcl 83 76 check=$check1 … … 85 78 esac 86 79 87 setstatus "stop" >> $scriptlog 2>&180 setstatus "stop" 88 81 done 89 82 90 finish >> $scriptlog 2>&183 finish 91 84
Note:
See TracChangeset
for help on using the changeset viewer.