Changeset 9054
- Timestamp:
- 07/30/08 16:31:01 (16 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r9049 r9054 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2008/07/30 Daniela Dorner 22 23 * resources/steps.rc: 24 - added 25 - adapted to new data structure 26 27 * steps.rc: 28 - removed 29 30 * datacenter/macros/setupdb.C, datacenter/macros/setstatus.C, 31 datacenter/macros/getdolist.C: 32 - removed 33 34 * datacenter/db/datacheck.php, datacenter/db/datasetinfo.php, 35 datacenter/db/magicdefs.php, datacenter/db/menu.php, 36 datacenter/db/resetseq.php, datacenter/db/runinfo.php, 37 datacenter/db/sequinfo.php, datacenter/macros/resetcolumn.C: 38 - removed fFailedCodeAdd 39 - changed fFailedCode to fProgramId 40 41 * datacenter/scripts/sourcefile: 42 - adapted path of steps.rc 43 - added new additional primaries to functions setstatus, getstatus 44 gettodo and getdolist 45 - merged function gettodo and getdolist 46 - removed todofile 47 - removed fFailedCodeAdd 48 - changed fFailedCode to fProgramId 49 50 * datacenter/scripts/buildsequenceentries, 51 datacenter/scripts/checkfilesforsequenceavail, 52 datacenter/scripts/checkstardone, datacenter/scripts/doexclusions, 53 datacenter/scripts/fillcallisto, datacenter/scripts/fillstar, 54 datacenter/scripts/fillganymed, 55 datacenter/scripts/writedatasetfiles, 56 datacenter/scripts/writesequencefiles: 57 - implemented usage of getodo (new merged function) 58 - removed todofile 59 - removed primval 60 61 * datacenter/scripts/runcallisto, datacenter/scripts/dodatacheck, 62 datacenter/scripts/runganymed, datacenter/scripts/runstar: 63 - implemented usage of getodo (new merged function) 64 - removed primval 65 66 * datacenter/scripts/checkstardone 67 - removed comadd 68 69 * datacenter/scripts/runcallisto 70 - append output of stage.C instead of overwriting logfile 71 72 20 73 21 74 2008/07/29 Stefan Ruegamer -
trunk/MagicSoft/Mars/datacenter/scripts/buildsequenceentries
r9047 r9054 50 50 51 51 # get todo list 52 getdolist >> $scriptlog 2>&1 53 54 # retrieve dates from todofile 55 dates=(`cat $todofile`) 56 if [ "$dates" = "" ] 57 then 58 echo "nothing to do -> exit" >> $scriptlog 2>&1 59 finish >> $scriptlog 2>&1 60 fi 61 echo "dates: "${dates[@]} >> $scriptlog 2>&1 62 rm -v $todofile >> $scriptlog 2>&1 52 gettodo >> $scriptlog 2>&1 63 53 64 54 cd $mars 65 55 66 for date in ${dates[@]} 67 do 56 for (( s=0 ; s < $num ; s++ )) 57 do 58 date=${primaries[$s+$s]} 59 telnum=${primaries[$s+$s+1]} 68 60 echo "building sequence entries for date $date..." >> $scriptlog 2>&1 69 61 printprocesslog "INFO build sequence entries for $date" … … 73 65 buildsequentrieslog=$buildsequentriespath/buildsequenceentries-$date.log 74 66 75 primvar=$date76 67 setstatus "start" >> $scriptlog 2>&1 77 68 78 check1=`root -q -b $macrospath/buildsequenceentries.C+\("\"$date\""\,"\"$datapath\""\,"\"$sequpath\""\, 1\,kFALSE\) | tee $buildsequentrieslog | intgrep`69 check1=`root -q -b $macrospath/buildsequenceentries.C+\("\"$date\""\,"\"$datapath\""\,"\"$sequpath\""\,$telnum\,kFALSE\) | tee $buildsequentrieslog | intgrep` 79 70 80 71 case $check1 in -
trunk/MagicSoft/Mars/datacenter/scripts/checkfilesforsequenceavail
r9036 r9054 50 50 51 51 # get todo list 52 getdolist >> $scriptlog 2>&1 53 54 # retrieve sequences from todofile 55 sequences=(`cat $todofile`) 56 if [ "$sequences" = "" ] 57 then 58 echo "nothing to do -> exit" >> $scriptlog 2>&1 59 finish >> $scriptlog 2>&1 60 fi 61 echo "sequences: "${sequences[@]} >> $scriptlog 2>&1 62 rm -v $todofile >> $scriptlog 2>&1 52 gettodo >> $scriptlog 2>&1 63 53 64 54 cd $mars 65 55 66 for sequence in ${sequences[@]} 67 do 56 for (( s=0 ; s < $num ; s++ )) 57 do 58 sequence=${primaries[$s+$s]} 59 telnum=${primaries[$s+$s+1]} 68 60 echo "checking files for sequence $sequence..." >> $scriptlog 2>&1 69 61 printprocesslog "INFO checking files for sequence $sequence" … … 74 66 checkfileavaillog=$checkfileavailpath/$program-$no2.log 75 67 76 primvar=$sequence77 68 setstatus "start" >> $scriptlog 2>&1 78 69 79 check1=`root -q -b $macrospath/checkfileavail.C+\($sequence, 1\) | tee $checkfileavaillog | intgrep`70 check1=`root -q -b $macrospath/checkfileavail.C+\($sequence,$telnum\) | tee $checkfileavaillog | intgrep` 80 71 81 72 case $check1 in -
trunk/MagicSoft/Mars/datacenter/scripts/checkstardone
r9018 r9054 48 48 49 49 # get todo list 50 getdolist >> $scriptlog 2>&1 51 52 datasets=(`cat $todofile`) 53 if [ "$datasets" = "" ] 54 then 55 echo "nothing to do -> exit" >> $scriptlog 2>&1 56 finish >> $scriptlog 2>&1 57 fi 58 echo "datasets: "${datasets[@]} >> $scriptlog 2>&1 59 rm -v $todofile >> $scriptlog 2>&1 50 gettodo >> $scriptlog 2>&1 60 51 61 52 cd $mars 62 53 63 for dataset in ${datasets[@]} 64 do 54 for (( s=0 ; s < $num ; s++ )) 55 do 56 dataset=${primaries[$s+$s]} 57 telnum=${primaries[$s+$s+1]} 65 58 echo "checking star done for sequences of dataset $dataset..." >> $scriptlog 2>&1 66 59 printprocesslog "INFO checking star done for sequences of dataset $dataset" … … 75 68 makedir $outpath >> $scriptlog 2>&1 76 69 77 primvar=$dataset78 70 setstatus "start" >> $scriptlog 2>&1 79 71 … … 95 87 printprocesslog "ERROR checkstardone.C failed" 96 88 com=$Fstardone 97 comadd=$sequence98 89 check=$check1 99 90 break -
trunk/MagicSoft/Mars/datacenter/scripts/dodatacheck
r9046 r9054 42 42 printprocesslog "INFO starting $0" 43 43 echo "This script has not been adapted to the new file structure (MAGIC II). " 44 echo "Only the usage of getodo has been adapted, but not tested." 44 45 echo "Please adapt it before using it." 45 46 exit … … 54 55 55 56 # get run # 56 gettodo >> $scriptlog 2>&1 57 run=$process 57 gettodo "1" >> $scriptlog 2>&1 58 run=${primaries[0]} 59 telnum=${primaries[1]} 60 filenum=${primaries[2]} 58 61 59 62 # lock sequ … … 74 77 date2=`echo $date | sed -e 's/\//-/g'` 75 78 76 primvar=$no279 #primvar=$no2 77 80 setstatus "start" >> $scriptlog 2>&1 78 81 -
trunk/MagicSoft/Mars/datacenter/scripts/doexclusions
r9047 r9054 50 50 51 51 # get todo list 52 getdolist >> $scriptlog 2>&1 53 54 dates=(`cat $todofile`) 55 if [ "$dates" = "" ] 56 then 57 echo "nothing to do -> exit" >> $scriptlog 2>&1 58 finish >> $scriptlog 2>&1 59 fi 60 echo "dates: "${dates[@]} >> $scriptlog 2>&1 61 rm -v $todofile >> $scriptlog 2>&1 52 gettodo >> $scriptlog 2>&1 62 53 63 54 cd $mars 64 55 65 56 # do exclusions for each date in the todo file 66 for date in ${dates[@]} 67 do 57 for (( s=0 ; s < $num ; s++ )) 58 do 59 date=${primaries[$s+$s]} 60 telnum=${primaries[$s+$s+1]} 68 61 echo "do exclusions for date "$date >> $scriptlog 2>&1 69 62 printprocesslog "INFO do exclusions for $date" … … 73 66 doexclusionslog=$doexclusionspath/doexclusions-$date.log 74 67 75 primvar=$date76 68 setstatus "start" >> $scriptlog 2>&1 77 69 78 check1=`root -q -b $macrospath/doexclusions.C+\("\"$date\""\, 1\,kFALSE\) | tee $doexclusionslog | intgrep`70 check1=`root -q -b $macrospath/doexclusions.C+\("\"$date\""\,$telnum\,kFALSE\) | tee $doexclusionslog | intgrep` 79 71 80 72 case $check1 in -
trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto
r8482 r9054 51 51 52 52 # get todo file 53 getdolist >> $scriptlog 2>&1 54 55 sequences=(`cat $todofile`) 56 if [ "$sequences" = "" ] 57 then 58 echo "nothing to do -> exit" >> $scriptlog 2>&1 59 finish >> $scriptlog 2>&1 60 fi 61 echo "sequences: "${sequences[@]} >> $scriptlog 2>&1 62 rm -v $todofile >> $scriptlog 2>&1 53 gettodo >> $scriptlog 2>&1 63 54 64 55 cd $mars 65 56 66 57 # fill information into the database for all sequences in the todo file 67 for sequence in ${sequences[@]} 68 do 58 for (( s=0 ; s < $num ; s++ )) 59 do 60 sequence=${primaries[$s+$s]} 61 telnum=${primaries[$s+$s+1]} 69 62 printprocesslog "INFO starting $program for sequence $sequence" 70 63 no=`printf %08d $sequence | cut -c 0-4` … … 79 72 80 73 echo "run $program for sequence $sequence" >> $scriptlog 2>&1 81 primvar=$no282 74 setstatus "start" >> $scriptlog 2>&1 83 75 echo "run fillcalib..." >> $scriptlog 2>&1 -
trunk/MagicSoft/Mars/datacenter/scripts/fillganymed
r8482 r9054 50 50 51 51 # get todo list 52 getdolist >> $scriptlog 2>&1 53 54 # retrieve datasets from todo file 55 datasets=(`cat $todofile`) 56 if [ "$datasets" = "" ] 57 then 58 echo "nothing to do -> exit" >> $scriptlog 2>&1 59 finish >> $scriptlog 2>&1 60 fi 61 echo "datasets: "${datasets[@]} >> $scriptlog 2>&1 62 rm -v $todofile >> $scriptlog 2>&1 52 gettodo >> $scriptlog 2>&1 63 53 64 54 cd $mars 65 55 66 56 # run fillganymed for datasets 67 for dataset in ${datasets[@]} 68 do 57 for (( s=0 ; s < $num ; s++ )) 58 do 59 dataset=${primaries[$s+$s]} 60 telnum=${primaries[$s+$s+1]} 69 61 printprocesslog "INFO starting $program for dataset $dataset" 70 62 no=`printf %08d $dataset | cut -c 0-5` … … 77 69 78 70 echo "run $program for dataset $dataset" >> $scriptlog 2>&1 79 primvar=$no280 71 setstatus "start" >> $scriptlog 2>&1 81 72 -
trunk/MagicSoft/Mars/datacenter/scripts/fillstar
r8482 r9054 50 50 51 51 # get todo list 52 getdolist >> $scriptlog 2>&1 53 54 # retrieve sequences from todo file 55 sequences=(`cat $todofile`) 56 if [ "$sequences" = "" ] 57 then 58 echo "nothing to do -> exit" >> $scriptlog 2>&1 59 finish >> $scriptlog 2>&1 60 fi 61 echo "sequences: "${sequences[@]} >> $scriptlog 2>&1 62 rm -v $todofile >> $scriptlog 2>&1 52 gettodo >> $scriptlog 2>&1 63 53 64 54 cd $mars 65 55 66 56 # run fillstar for sequences 67 for sequence in ${sequences[@]} 68 do 57 for (( s=0 ; s < $num ; s++ )) 58 do 59 sequence=${primaries[$s+$s]} 60 telnum=${primaries[$s+$s+1]} 69 61 printprocesslog "INFO starting $program for sequence $sequence" 70 62 no=`printf %08d $sequence | cut -c 0-4` … … 77 69 78 70 echo "run $program for sequence $sequence" >> $scriptlog 2>&1 79 primvar=$no280 71 setstatus "start" >> $scriptlog 2>&1 81 72 -
trunk/MagicSoft/Mars/datacenter/scripts/runcallisto
r9040 r9054 53 53 54 54 # get sequence # 55 gettodo >> $scriptlog 2>&1 56 sequence=$process 55 gettodo "1" >> $scriptlog 2>&1 56 sequence=${primaries[0]} 57 telnum=${primaries[1]} 57 58 58 59 # lock sequ for cal … … 103 104 fi 104 105 105 primvar=$no2106 106 setstatus "start" >> $scriptlog 2>&1 107 107 … … 109 109 echo "staging files:" >> $scriptlog 2>&1 110 110 111 echo 'root -q -b $macrospath/stage.C\("\"$sequfile\""\) | tee $scriptlog | intgrep' >> $scriptlog 2>&1112 check0=`root -q -b $macrospath/stage.C\("\"$sequfile\""\) | tee $scriptlog | intgrep`111 echo 'root -q -b $macrospath/stage.C\("\"$sequfile\""\) | tee -a $scriptlog | intgrep' >> $scriptlog 2>&1 112 check0=`root -q -b $macrospath/stage.C\("\"$sequfile\""\) | tee -a $scriptlog | intgrep` 113 113 114 114 case $check0 in -
trunk/MagicSoft/Mars/datacenter/scripts/runganymed
r8525 r9054 51 51 52 52 # get dataset # 53 gettodo >> $scriptlog 2>&1 54 dataset=$process 53 gettodo "1" >> $scriptlog 2>&1 54 dataset=${primaries[0]} 55 telnum=${primaries[1]} 55 56 56 57 # lock sequ … … 76 77 fi 77 78 78 primvar=$no279 79 setstatus "start" >> $scriptlog 2>&1 80 80 -
trunk/MagicSoft/Mars/datacenter/scripts/runstar
r8723 r9054 52 52 53 53 # get sequence # 54 gettodo >> $scriptlog 2>&1 55 sequence=$process 54 gettodo "1" >> $scriptlog 2>&1 55 sequence=${primaries[0]} 56 telnum=${primaries[1]} 56 57 57 58 # lock sequ … … 71 72 sequfile="$sequpath/$no/sequence$no2.txt" 72 73 73 primvar=$no274 74 setstatus "start" >> $scriptlog 2>&1 75 75 -
trunk/MagicSoft/Mars/datacenter/scripts/writedatasetfiles
r8482 r9054 49 49 50 50 # get todo list 51 getdolist >> $scriptlog 2>&1 52 53 datasets=(`cat $todofile`) 54 if [ "$datasets" = "" ] 55 then 56 echo "nothing to do -> exit" >> $scriptlog 2>&1 57 finish >> $scriptlog 2>&1 58 fi 59 echo "datasets: "${datasets[@]} >> $scriptlog 2>&1 60 rm -v $todofile >> $scriptlog 2>&1 51 gettodo >> $scriptlog 2>&1 61 52 62 53 cd $mars 63 54 64 for dataset in ${datasets[@]} 65 do 55 for (( s=0 ; s < $num ; s++ )) 56 do 57 dataset=${primaries[$s+$s]} 58 telnum=${primaries[$s+$s+1]} 66 59 echo "writing dataset file for dataset $dataset..." >> $scriptlog 2>&1 67 60 printprocesslog "INFO writing datasetfile for dataset $dataset" … … 74 67 logfile=$writedatasetfilelogpath/$program-$no2.log 75 68 76 primvar=$dataset77 69 setstatus "start" >> $scriptlog 2>&1 78 70 -
trunk/MagicSoft/Mars/datacenter/scripts/writesequencefiles
r9047 r9054 50 50 51 51 # get todo list 52 getdolist >> $scriptlog 2>&1 53 54 # get sequences from todo file 55 sequences=(`cat $todofile`) 56 if [ "$sequences" = "" ] 57 then 58 echo "nothing to do -> exit" >> $scriptlog 2>&1 59 finish >> $scriptlog 2>&1 60 fi 61 echo "sequences: "${sequences[@]} >> $scriptlog 2>&1 62 rm -v $todofile >> $scriptlog 2>&1 52 gettodo >> $scriptlog 2>&1 63 53 64 54 cd $mars 65 55 66 # write sequence file for all sequences in todo file 67 for sequence in ${sequences[@]} 68 do 56 # write sequence file for all sequences which don't have one yet 57 for (( s=0 ; s < $num ; s++ )) 58 do 59 sequence=${primaries[$s+$s]} 60 telnum=${primaries[$s+$s+1]} 69 61 printprocesslog "INFO write sequence files for sequence $sequence" 70 62 no=`printf %08d $sequence | cut -c 0-4` … … 78 70 79 71 echo "write sequencefile for sequence $sequence" >> $scriptlog 2>&1 80 primvar=$no281 72 setstatus "start" >> $scriptlog 2>&1 82 73 83 check2=`root -q -b $macrospath/writesequencefile.C\($sequence\, 1\,"\"$sequpath\""\) | tee $writesequencefilelog | intgrep`74 check2=`root -q -b $macrospath/writesequencefile.C\($sequence\,$telnum\,"\"$sequpath\""\) | tee $writesequencefilelog | intgrep` 84 75 case $check2 in 85 76 1) echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1
Note:
See TracChangeset
for help on using the changeset viewer.