Changeset 7120 for trunk/MagicSoft/Mars/datacenter/scripts/runganymed
- Timestamp:
- 06/01/05 16:27:31 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/runganymed
r7106 r7120 182 182 datasetfile="/magic/datasets/$no/dataset$no2.txt" 183 183 echo "datasetfile: "$datasetfile >> $scriptlog 2>&1 184 wobble=`grep 'WobbleMode:' $datasetfile` >> $scriptlog 2>&1 185 wobble2=`echo $wobble | grep ^\#` >> $scriptlog 2>&1 186 if [ "$mode2" = "" ] 187 then 188 mode="wobble" >> $scriptlog 2>&1 189 else 190 mode="onoff" >> $scriptlog 2>&1 191 fi 192 ganymedrc=/magic/datacenter/setup/ganymed/ganymed_$mode 184 193 185 194 echo "run ganymed..." >> $scriptlog 2>&1 186 ./ganymed -b -q -f --sum -- log=$outpath/ganymed$no2.log--out=$outpath $datasetfile 2>> $scriptlog> /dev/null195 ./ganymed -b -q -f --sum --config=$ganymedrc.rc --log=$outpath/ganymed$no2.log --html=$outpath/ganymed$no2.html --out=$outpath $datasetfile 2>> $scriptlog> /dev/null 187 196 check1=$? 188 197 189 198 case $check1 in 190 199 0) echo "check1=$check1 -> everthing ok " >> $scriptlog 2>&1 191 echo "-> inserting the status for ganymed for dataset $dataset into the db" >> $scriptlog 2>&1 192 setstatuslogpath=$logpath/setstatus/ganymed/$no 193 if [ ! -d $setstatuslogpath ] 194 then 195 mkdir -pv $setstatuslogpath >> $scriptlog 2>&1 196 if [ ! -d $setstatuslogpath ] 197 then 198 echo "could not make setstatuslogpath "$setstatuslogpath >> $scriptlog 2>&1 199 continue 200 fi 201 fi 202 setstatuslog=$setstatuslogpath/setstatus-ganymed-$no2.log 203 check4=`root -q -b $macrospath/setstatus.C+\("\"$dataset\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'` 204 case $check4 in 205 1) echo "check4=$check4 -> everthing ok, status has been set" >> $scriptlog 2>&1;; 206 *) echo "check4=$check4 -> ERROR -> step could not be set" >> $scriptlog 2>&1;; 207 esac 208 ;; 200 echo "-> do ganymed a second time " >> $scriptlog 2>&1 201 ./ganymed -b -q -f --skip-res --config=$ganymedrc-fs.rc --log=$outpath/ganymed$no2-fs.log --html=$outpath/ganymed$no2-fs.html --outf=$outpath/ganymed$no2-fs.root $datasetfile 2>> $scriptlog> /dev/null 202 check2=$? 203 204 case $check2 in 205 0) echo "check2=$check2 -> everthing ok " >> $scriptlog 2>&1 206 echo "-> inserting the status for ganymed for dataset $dataset into the db" >> $scriptlog 2>&1 207 setstatuslogpath=$logpath/setstatus/ganymed/$no 208 if [ ! -d $setstatuslogpath ] 209 then 210 mkdir -pv $setstatuslogpath >> $scriptlog 2>&1 211 if [ ! -d $setstatuslogpath ] 212 then 213 echo "could not make setstatuslogpath "$setstatuslogpath >> $scriptlog 2>&1 214 continue 215 fi 216 fi 217 setstatuslog=$setstatuslogpath/setstatus-ganymed-$no2.log 218 check4=`root -q -b $macrospath/setstatus.C+\("\"$dataset\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'` 219 case $check4 in 220 1) echo "check4=$check4 -> everthing ok, status has been set" >> $scriptlog 2>&1;; 221 *) echo "check4=$check4 -> ERROR -> step could not be set" >> $scriptlog 2>&1;; 222 esac 223 ;; 224 *) echo "check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;; 209 225 *) echo "check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;; 210 226 esac
Note:
See TracChangeset
for help on using the changeset viewer.