Changeset 7944 for trunk/MagicSoft/Mars/datacenter/scripts/fillstar
- Timestamp:
- 08/25/06 22:09:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/fillstar
r7938 r7944 35 35 # 36 36 37 source `dirname $0`/sourcefile 38 printprocesslog "INFO starting $0" 37 39 program=fillstar 38 source `dirname $0`/sourcefile 40 column=fFillStar 39 41 40 42 set -C 41 43 42 column=fFillStar 43 44 lockfile=$lockpath/lock-$program.txt 45 46 scriptlogpath=$runlogpath/$program 47 makedir $scriptlogpath 48 scriptlog=$scriptlogpath/run$program-$datetime.log 49 44 scriptlog=$runlogpath/run$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 55 51 # get todo list 56 52 getdolist >> $scriptlog 2>&1 57 58 53 59 54 # retrieve sequences from todo file … … 72 67 for sequence in ${sequences[@]} 73 68 do 69 printprocesslog "INFO starting $program for sequence $sequence" 74 70 no=`printf %08d $sequence | cut -c 0-4` 75 71 no2=`printf %08d $sequence` … … 87 83 check2=`root -q -b $macrospath/fillstar.C+\("\"$starfile\""\,kFALSE\) | tee $fillstarlog | grep \(int\) | sed -e 's/.*(int)//'` 88 84 case $check2 in 89 1) echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1 ;; 85 1) echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1 86 printprocesslog "INFO done fillstar successfully for sequence $sequence" 87 ;; 90 88 0) echo " check2=$check2 -> no connection to db -> continue..." >> $scriptlog 2>&1 89 printprocesslog "WARN connection to DB failed" 91 90 check="no" 92 91 ;; 93 92 *) echo " check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 93 printprocesslog "ERROR fillstar failed for sequence $sequence" 94 94 com=$Ffillstar 95 95 check=$check2
Note:
See TracChangeset
for help on using the changeset viewer.