- Timestamp:
- 02/19/09 21:22:19 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/buildsequenceentries
r9215 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 … … 58 55 date=${primaries[$s+$s]} 59 56 telnum=${primaries[$s+$s+1]} 60 echo "building sequence entries for date $date..." >> $scriptlog 2>&161 57 printprocesslog "INFO build sequence entries for $date" 62 58 year2=`echo $date | cut -c 1-4` 63 59 buildsequentriespath=$logpath/$program/$year2 64 makedir $buildsequentriespath >> $scriptlog 2>&160 makedir $buildsequentriespath 65 61 buildsequentrieslog=$buildsequentriespath/buildsequenceentries-$date.log 66 62 67 setstatus "start" >> $scriptlog 2>&163 setstatus "start" 68 64 69 65 check1=`root -q -b $macrospath/buildsequenceentries.C+\("\"$date\""\,"\"$datapath\""\,"\"$sequpath\""\,$telnum\,kFALSE\) | tee $buildsequentrieslog | intgrep` 70 66 71 67 case $check1 in 72 1) echo " check1=$check1 -> everything ok -> setting status for $date..." >> $scriptlog 2>&1 73 printprocesslog "INFO sequence entries successfully built for $date" 68 1) printprocesslog "INFO sequence entries successfully built for $date (check1=$check1)" 74 69 IFS=$'\n' 75 70 missing=( `grep "Missing" $buildsequentrieslog` ) … … 83 78 unset IFS 84 79 ;; 85 0) echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1 86 printprocesslog "WARN connection to DB failed" 80 0) printprocesslog "WARN connection to DB failed (check1=$check1)" 87 81 check="no" 88 82 ;; 89 *) echo " check1=$check1 -> ERROR - $program.C failed for $date -> step has to be repeated" >> $scriptlog 2>&1 90 printprocesslog "ERROR $program.C failed for $date" 83 *) printprocesslog "ERROR $program.C failed for $date (check1=$check1)" 91 84 com=$Fbuildsequ 92 85 check=$check1 … … 94 87 esac 95 88 96 setstatus "stop" >> $scriptlog 2>&189 setstatus "stop" 97 90 done 98 91 99 finish >> $scriptlog 2>&192 finish 100 93
Note:
See TracChangeset
for help on using the changeset viewer.