- Timestamp:
- 05/17/05 17:08:26 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/writesequencefiles
r7030 r7052 104 104 for sequence in ${sequences[@]} 105 105 do 106 no=`printf %08d $sequence | cut -c 4`107 108 sequencepath=/magic/sequences/ `printf %04d $no`106 no=`printf %08d $sequence | cut -c 0-4` 107 no2=`printf %08d $sequence` 108 sequencepath=/magic/sequences/$no 109 109 if [ ! -d $sequencepath ] 110 110 then … … 117 117 fi 118 118 119 writesequencefilelogpath=$logpath/writesequencefile/ `printf %04d $no`119 writesequencefilelogpath=$logpath/writesequencefile/$no 120 120 echo "writesequencefilelogpath: "$writesequencefilelogpath >> $scriptlog 2>&1 121 121 if [ ! -d $writesequencefilelogpath ] … … 130 130 131 131 echo "write sequencefile for sequence $sequence" >> $scriptlog 2>&1 132 check2=`root -q -b $macrospath/writesequencefile.C+\($sequence\) | tee $writesequencefilelogpath/writesequencefile-$ sequence.log | grep int | sed -e 's/(int)//'`132 check2=`root -q -b $macrospath/writesequencefile.C+\($sequence\) | tee $writesequencefilelogpath/writesequencefile-$no2.log | grep int | sed -e 's/(int)//'` 133 133 case $check2 in 134 134 1) echo "check2=$check2 -> everthing ok " >> $scriptlog 2>&1 135 135 echo "-> inserting the status for writesequencefile for sequence $sequence into the db" >> $scriptlog 2>&1 136 setstatuslogpath=$logpath/setstatus/writesequencefile/ `printf %04d $no`136 setstatuslogpath=$logpath/setstatus/writesequencefile/$no 137 137 if [ ! -d $setstatuslogpath ] 138 138 then … … 144 144 fi 145 145 fi 146 setstatuslog=$setstatuslogpath/setstatus-writesequencefile 147 check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog -$sequence.log| grep int | sed -e 's/(int)//'`146 setstatuslog=$setstatuslogpath/setstatus-writesequencefile-$no2.log 147 check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'` 148 148 case $check4 in 149 149 1) echo "check4=$check4 -> everthing ok, status has been set" >> $scriptlog 2>&1;;
Note:
See TracChangeset
for help on using the changeset viewer.