- Timestamp:
- 08/25/06 22:09:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/buildsequenceentries
r7938 r7944 35 35 # 36 36 37 source `dirname $0`/sourcefile 38 printprocesslog "INFO starting $0" 37 39 program=buildsequenceentries 38 source `dirname $0`/sourcefile 40 column=fSequenceEntriesBuilt 39 41 40 42 set -C 41 43 42 column=fSequenceEntriesBuilt 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 script is already running 48 lockfile=$lockpath/lock-$program.txt 53 49 checklock >> $scriptlog 2>&1 54 50 … … 71 67 do 72 68 echo "building sequence entries for date $date..." >> $scriptlog 2>&1 69 printprocesslog "INFO build sequence entries 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 for $date..." >> $scriptlog 2>&1;; 82 1) echo " check1=$check1 -> everything ok -> setting status for $date..." >> $scriptlog 2>&1 83 printprocesslog "INFO sequence entries successfully built for $date" 84 ;; 86 85 0) echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1 86 printprocesslog "WARN connection to DB failed" 87 87 check="no" 88 88 ;; 89 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" 90 91 com=$Fbuildsequ 91 92 check=$check1
Note:
See TracChangeset
for help on using the changeset viewer.