- Timestamp:
- 02/19/09 21:22:19 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/writesequencefiles
r9054 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 … … 63 60 no2=`printf %08d $sequence` 64 61 sequencepath=$sequpath/$no 65 makedir $sequencepath >> $scriptlog 2>&162 makedir $sequencepath 66 63 67 64 writesequencefilelogpath=$logpath/$program/$no 68 makedir $writesequencefilelogpath >> $scriptlog 2>&165 makedir $writesequencefilelogpath 69 66 writesequencefilelog=$writesequencefilelogpath/writesequencefile-$no2.log 70 67 71 echo "write sequencefile for sequence $sequence" >> $scriptlog 2>&1 72 setstatus "start" >> $scriptlog 2>&1 68 setstatus "start" 73 69 74 check2=`root -q -b $macrospath/writesequencefile.C\($sequence\,$telnum\,"\"$sequpath\""\) | tee $writesequencefilelog | intgrep` 75 case $check2 in 76 1) echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1 77 printprocesslog "INFO sequence file successfully written for sequence $sequence" 70 check1=`root -q -b $macrospath/writesequencefile.C\($sequence\,$telnum\,"\"$sequpath\""\) | tee $writesequencefilelog | intgrep` 71 case $check1 in 72 1) printprocesslog "INFO sequence file successfully written for sequence $sequence (check1=$check1)" 78 73 ;; 79 0) echo " check2=$check2 -> no connection to db -> continue..." >> $scriptlog 2>&1 80 printprocesslog "WARN connection to DB failed" 74 0) printprocesslog "WARN connection to DB failed (check1=$check1)" 81 75 check="no" 82 76 ;; 83 *) echo " check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 84 printprocesslog "ERROR $program.C failed for sequence $sequence" 77 *) printprocesslog "ERROR $program.C failed for sequence $sequence (check1=$check1)" 85 78 com=$Fwritesequfile 86 check=$check 279 check=$check1 87 80 ;; 88 81 esac 89 82 90 setstatus "stop" >> $scriptlog 2>&183 setstatus "stop" 91 84 done 92 85 93 finish >> $scriptlog 2>&186 finish 94 87
Note:
See TracChangeset
for help on using the changeset viewer.