Changeset 7909
- Timestamp:
- 08/22/06 13:42:30 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7908 r7909 68 68 * steps.rc: 69 69 - fixed typo 70 71 * datacenter/scripts/buildsequenceentries, 72 datacenter/scripts/checkfilesforsequenceavail, 73 datacenter/scripts/checkstardone, datacenter/scripts/correcttime, 74 datacenter/scripts/dodatacheck, datacenter/scripts/doexclusions, 75 datacenter/scripts/fillcallisto, datacenter/scripts/fillganymed, 76 datacenter/scripts/fillstar, datacenter/scripts/runcallisto, 77 datacenter/scripts/runganymed, datacenter/scripts/runstar, 78 datacenter/scripts/writesequencefiles: 79 - implemented usage of gettodo instead of getdolist (faster) 70 80 71 81 -
trunk/MagicSoft/Mars/datacenter/scripts/buildsequenceentries
r7902 r7909 29 29 # 30 30 # After checking, if the script is already running, the todolist is 31 # written by using the macro getdolist.C31 # written. 32 32 # Then the sequences are built for each date in the todolist using the 33 33 # macro buildsequenceentries.C … … 41 41 set -C 42 42 43 cd $mars44 45 table=SequenceBuildStatus46 43 column=fSequenceEntriesBuilt 47 44 48 todofile=$listpath/ToDo-$table-$column.txt49 45 lockfile=$lockpath/lock-$program.txt 50 46 … … 59 55 60 56 # get todo list 61 get dolist>> $scriptlog 2>&157 gettodo >> $scriptlog 2>&1 62 58 63 59 # retrieve dates from todofile … … 68 64 finish >> $scriptlog 2>&1 69 65 fi 66 67 cd $mars 70 68 71 69 echo "dates: "${dates[@]} >> $scriptlog 2>&1 -
trunk/MagicSoft/Mars/datacenter/scripts/checkfilesforsequenceavail
r7902 r7909 29 29 # 30 30 # After checking, if the script is already running, the todolist is 31 # written by using the macro getdolist.C31 # written 32 32 # Then for each sequence the availability of the files (raw, cc, caco) is 33 33 # checked by using the macro checkfilesavail.C … … 39 39 source `dirname $0`/sourcefile 40 40 41 table=SequenceProcessStatus42 41 column=fAllFilesAvail 43 42 44 todofile=$listpath/ToDo-$table-$column.txt45 43 lockfile=$lockpath/lock-$program.txt 46 44 … … 51 49 date >> $scriptlog 2>&1 52 50 53 cd $mars54 55 51 # check if script is already running 56 52 checklock >> $scriptlog 2>&1 57 53 58 54 # get todo list 59 get dolist>> $scriptlog 2>&155 gettodo >> $scriptlog 2>&1 60 56 61 57 # retrieve sequences from todofile … … 66 62 finish >> $scriptlog 2>&1 67 63 fi 64 65 cd $mars 68 66 69 67 echo "sequences: "${sequences[@]} >> $scriptlog 2>&1 -
trunk/MagicSoft/Mars/datacenter/scripts/checkstardone
r7902 r7909 29 29 # 30 30 # After checking, if the script is already running, the todolist is 31 # written by using the macro getdolist.C31 # written 32 32 # Then for each dataset the sequences are extracted from the datasetfile 33 33 # and for each sequence the availability of the star files checked by using … … 40 40 source `dirname $0`/sourcefile 41 41 42 table=DataSetProcessStatus43 42 column=fStarFilesAvail 44 43 45 todofile=$listpath/ToDo-$table-$column.txt46 44 lockfile=$lockpath/lock-$program.txt 47 45 … … 52 50 date >> $scriptlog 2>&1 53 51 54 cd $mars55 56 52 # check if script is already running 57 53 checklock >> $scriptlog 2>&1 58 54 59 55 # get todo list 60 get dolist >> $scriptlog 2>&156 gettodot >> $scriptlog 2>&1 61 57 62 58 datasets=(`cat $todofile`) … … 66 62 finish >> $scriptlog 2>&1 67 63 fi 64 65 cd $mars 68 66 69 67 echo "datasets: "${datasets[@]} #>> $scriptlog 2>&1 -
trunk/MagicSoft/Mars/datacenter/scripts/correcttime
r7902 r7909 29 29 # 30 30 # After checking, if the script is already running, the todolist is 31 # written by using the macro getdolist.C31 # written 32 32 # Then for each run the timing correction is done 33 33 # If this was successful, the status is inserted into the database using … … 41 41 source `dirname $0`/sourcefile 42 42 43 table=RunProcessStatus44 43 column=fTimingCorrection 45 44 46 todofile=$listpath/ToDo-$table-$column.txt47 45 lockfile=$lockpath/lock-$program.txt 48 46 … … 53 51 fi 54 52 55 cd $mars56 57 53 # get todo list 58 get dolist>> $scriptlog 2>&154 gettodo >> $scriptlog 2>&1 59 55 60 56 # retrieving runs from todo file … … 65 61 finish >> $scriptlog 2>&1 66 62 fi 63 64 cd $mars 67 65 68 66 echo "runs: "${runs[@]} -
trunk/MagicSoft/Mars/datacenter/scripts/dodatacheck
r7902 r7909 29 29 # 30 30 # After checking, if the script is already running, the todolist is 31 # written by using the macro getdolist.C31 # written 32 32 # Then for each run the following steps are done: 33 33 # - filldotraw.C … … 45 45 set -C 46 46 47 cd $mars48 49 table=RunProcessStatus50 47 column=fDataCheckDone 51 48 52 todofile=$listpath/ToDo-$table-$column53 49 lockfile=$lockpath/lock-getting-$program-list.txt 54 50 … … 69 65 checklock "getting list of" >> $scriptlog 2>&1 70 66 # get todo list 71 get dolist >> $scriptlog 2>&167 gettodolist >> $scriptlog 2>&1 72 68 rm -v $lockfile >> $scriptlog 2>&1 73 69 fi … … 114 110 finish >> $scriptlog 2>&1 115 111 fi 112 113 cd $mars 116 114 117 115 # processing run(s) -
trunk/MagicSoft/Mars/datacenter/scripts/doexclusions
r7902 r7909 29 29 # 30 30 # After checking, if the script is already running, the todolist is 31 # written by using the macro getdolist.C31 # written 32 32 # Then the run are excluded for each date in the todolist using the 33 33 # macro doexclusions.C … … 41 41 set -C 42 42 43 cd $mars44 45 table=SequenceBuildStatus46 43 column=fExclusionsDone 47 44 48 todofile=$listpath/ToDo-$table-$column.txt49 45 lockfile=$lockpath/lock-$program.txt 50 46 … … 59 55 60 56 # get todo list 61 get dolist>> $scriptlog 2>&157 gettodo >> $scriptlog 2>&1 62 58 63 59 dates=(`cat $todofile`) … … 67 63 finish >> $scriptlog 2>&1 68 64 fi 65 66 cd $mars 69 67 70 68 # do exclusions for each date in the todo file -
trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto
r7902 r7909 29 29 # 30 30 # After checking, if the script is already running, the todolist is 31 # written by using the macro getdolist.C31 # written 32 32 # Then for each sequence in the todo list the calibration results are 33 33 # filled into the table Calibration in the database using the macros … … 42 42 set -C 43 43 44 table=SequenceProcessStatus45 44 column=fFillCallisto 46 45 47 todofile=$listpath/ToDo-$table-$column.txt48 46 lockfile=$lockpath/lock-$program.txt 49 47 … … 54 52 date >> $scriptlog 2>&1 55 53 56 cd $mars57 58 54 # check if the script is already running 59 55 checklock >> $scriptlog 2>&1 60 56 61 57 # get todo file 62 get dolist >> $scriptlog 2>&158 gettodolist >> $scriptlog 2>&1 63 59 64 60 sequences=(`cat $todofile`) … … 68 64 finish >> $scriptlog 2>&1 69 65 fi 66 67 cd $mars 70 68 71 69 # fill information into the database for all sequences in the todo file -
trunk/MagicSoft/Mars/datacenter/scripts/fillganymed
r7902 r7909 29 29 # 30 30 # After checking, if the script is already running, the todolist is 31 # written by using the macro getdolist.C31 # written 32 32 # Then for each dataset in the todo list the ganymed results are filled 33 33 # into the table Ganymed in the database using the macro fillganymed.C … … 41 41 set -C 42 42 43 table=DataSetProcessStatus44 43 column=fFillGanymed 45 44 46 todofile=$listpath/ToDo-$table-$column.txt47 45 lockfile=$lockpath/lock-$program.txt 48 46 … … 53 51 date >> $scriptlog 2>&1 54 52 55 cd $mars56 57 53 # check if script is already running 58 54 checklock >> $scriptlog 2>&1 59 55 60 56 # get todo list 61 get dolist>> $scriptlog 2>&157 gettodo >> $scriptlog 2>&1 62 58 63 59 # retrieve datasets from todo file … … 68 64 finish >> $scriptlog 2>&1 69 65 fi 66 67 cd $mars 70 68 71 69 # run fillganymed for datasets -
trunk/MagicSoft/Mars/datacenter/scripts/fillstar
r7902 r7909 29 29 # 30 30 # After checking, if the script is already running, the todolist is 31 # written by using the macro getdolist.C31 # written 32 32 # Then for each sequence in the todo list the star results are filled 33 33 # into the table Star in the database using the macro fillstar.C … … 41 41 set -C 42 42 43 table=SequenceProcessStatus44 43 column=fFillStar 45 44 46 todofile=$listpath/ToDo-$table-$column.txt47 45 lockfile=$lockpath/lock-$program.txt 48 46 … … 53 51 date >> $scriptlog 2>&1 54 52 55 cd $mars56 57 53 # check if the script is already running 58 54 checklock >> $scriptlog 2>&1 59 55 60 56 # get todo list 61 get dolist>> $scriptlog 2>&157 gettodo >> $scriptlog 2>&1 62 58 63 59 … … 69 65 finish >> $scriptlog 2>&1 70 66 fi 67 68 cd $mars 71 69 72 70 # run fillstar for sequences -
trunk/MagicSoft/Mars/datacenter/scripts/runcallisto
r7902 r7909 46 46 callistorcmarapr05=$setuppath/$program/callisto_MarApr05.rc 47 47 48 table=SequenceProcessStatus49 48 column=fCallisto 50 49 #pno=500 # number of processes, i.e. number of todo-files 51 50 52 todofile=$listpath/ToDo-$table-$column53 51 lockfile=$lockpath/lock-getting-$program-list.txt 54 52 … … 58 56 59 57 date >> $scriptlog 2>&1 60 61 cd $mars62 58 63 59 # get todo file … … 71 67 checklock "getting list of" >> $scriptlog 2>&1 72 68 # get todo list 73 get dolist>> $scriptlog 2>&169 gettodo >> $scriptlog 2>&1 74 70 rm -v $lockfile >> $scriptlog 2>&1 75 71 fi … … 113 109 finish >> $scriptlog 2>&1 114 110 fi 111 112 cd $mars 115 113 116 114 # run calibration for sequence(s) -
trunk/MagicSoft/Mars/datacenter/scripts/runganymed
r7902 r7909 42 42 set -C 43 43 44 table=DataSetProcessStatus45 44 column=fGanymed 46 45 #pno=24 # number of processes, i.e. number of todo-files 47 46 48 todofile=$listpath/ToDo-$table-$column49 47 lockfile=$lockpath/lock-getting-$program-list.txt 50 48 … … 54 52 55 53 date >> $scriptlog 2>&1 56 57 cd $mars58 54 59 55 # finding todo file … … 67 63 checklock "getting list of" >> $scriptlog 2>&1 68 64 # get todo list 69 get dolist>> $scriptlog 2>&165 gettodo >> $scriptlog 2>&1 70 66 rm -v $lockfile >> $scriptlog 2>&1 71 67 fi -
trunk/MagicSoft/Mars/datacenter/scripts/runstar
r7902 r7909 42 42 set -C 43 43 44 table=SequenceProcessStatus45 44 column=fStar 46 45 #pno=500 # number of processes, i.e. number of todo-files 47 46 48 todofile=$listpath/ToDo-$table-$column49 47 lockfile=$lockpath/lock-getting-$program-list.txt 50 48 … … 54 52 55 53 date >> $scriptlog 2>&1 56 57 cd $mars58 54 59 55 # finding todo file … … 67 63 checklock "getting list of" >> $scriptlog 2>&1 68 64 # get todo list 69 get dolist>> $scriptlog 2>&165 gettodo >> $scriptlog 2>&1 70 66 rm -v $lockfile >> $scriptlog 2>&1 71 67 fi … … 110 106 fi 111 107 108 cd $mars 109 112 110 # run star for sequence 113 111 echo "sequences: "${sequences[@]} >> $scriptlog 2>&1 -
trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
r7908 r7909 296 296 done 297 297 fi 298 query=$query" isnull(fStartTime) and isnull(fFailedTime) and isnull(fFailedCode) and isnull(fFailedCodeAdd) and isnull(fReturnCode) order by $primary desc " 298 query=$query" isnull($column) " 299 query=$query" and isnull(fStartTime) and isnull(fFailedTime) and isnull(fFailedCode) and isnull(fFailedCodeAdd) and isnull(fReturnCode) " 300 query=$query" order by $primary desc " 299 301 if [ "$singleprocess" = "yes" ] 300 302 then … … 311 313 if [ "$singleprocess" = "yes" ] 312 314 then 313 listfile=$listpath/ToDo-$table-$column-$process.txt315 todofile=$listpath/ToDo-$table-$column-$process.txt 314 316 echo " => found $process" 315 317 else 316 listfile=$listpath/ToDo-$table-$column.txt318 todofile=$listpath/ToDo-$table-$column.txt 317 319 echo "found processes" 318 320 fi 319 # echo " list: "$ listfile321 # echo " list: "$todofile 320 322 321 if ls $ listfile > /dev/null 2>&1323 if ls $todofile > /dev/null 2>&1 322 324 then 323 echo "$ listfile exists already"325 echo "$todofile exists already" 324 326 contex 325 327 fi 326 echo $process > $ listfile327 fi 328 } 328 echo $process > $todofile 329 fi 330 } -
trunk/MagicSoft/Mars/datacenter/scripts/writesequencefiles
r7902 r7909 29 29 # 30 30 # After checking, if the script is already running, the todolist is 31 # written by using the macro getdolist.C31 # written 32 32 # Then the sequence file is written for each sequence in the todolist using 33 33 # the macro writesequencefile.C … … 41 41 set -C 42 42 43 table=SequenceProcessStatus44 43 column=fSequenceFileWritten 45 44 46 todofile=$listpath/ToDo-$table-$column.txt47 45 lockfile=$lockpath/lock-$program.txt 48 46 … … 53 51 date >> $scriptlog 2>&1 54 52 55 cd $mars56 57 53 # check if script is already running 58 54 checklock >> $scriptlog 2>&1 59 55 60 56 # get todo list 61 get dolist>> $scriptlog 2>&157 gettodo >> $scriptlog 2>&1 62 58 63 59 # get sequences from todo file … … 68 64 finish >> $scriptlog 2>&1 69 65 fi 66 67 cd $mars 70 68 71 69 # write sequence file for all sequences in todo file
Note:
See TracChangeset
for help on using the changeset viewer.