Changeset 7944 for trunk/MagicSoft/Mars/datacenter/scripts/doexclusions
- Timestamp:
- 08/25/06 22:09:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/doexclusions
r7938 r7944 35 35 # 36 36 37 source `dirname $0`/sourcefile 38 printprocesslog "INFO starting $0" 37 39 program=doexclusions 38 source `dirname $0`/sourcefile40 column=fExclusionsDone 39 41 40 42 set -C 41 43 42 column=fExclusionsDone 43 44 lockfile=$lockpath/lock-$program.txt 45 46 scriptlogpath=$runlogpath/$program 47 makedir $scriptlogpath 48 scriptlog=$scriptlogpath/$program-$datetime.log 49 44 scriptlog=$runlogpath/$program-$datetime.log 50 45 date >> $scriptlog 2>&1 51 46 52 47 # check if the script is already running 48 lockfile=$lockpath/lock-$program.txt 53 49 checklock >> $scriptlog 2>&1 54 50 … … 71 67 do 72 68 echo "do exclusions for date "$date >> $scriptlog 2>&1 69 printprocesslog "INFO do exclusions for $date" 73 70 year2=`echo $date | cut -c 1-4` 74 71 var1=$year2 … … 83 80 84 81 case $check1 in 85 1) echo " check1=$check1 -> everything ok -> setting status..." >> $scriptlog 2>&1 ;; 82 1) echo " check1=$check1 -> everything ok -> setting status..." >> $scriptlog 2>&1 83 printprocesslog "INFO exclusions successfully done for $date" 84 ;; 85 0) echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1 86 printprocesslog "WARN connection to DB failed" 87 check="no" 88 ;; 86 89 *) echo " check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 90 printprocesslog "ERROR $program.C failed" 87 91 com=$Fdoexcl 88 92 check=$check1
Note:
See TracChangeset
for help on using the changeset viewer.