Changeset 7265 for trunk/MagicSoft/Mars/datacenter/scripts
- Timestamp:
- 08/05/05 18:33:55 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/datacenter/scripts
- Files:
-
- 1 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/buildsequenceentries
r7233 r7265 57 57 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;; 58 58 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1 59 echo "-> getting list for callistois running -> exit" >> $scriptlog 2>&159 echo "-> getting list for buildsequenceentries is running -> exit" >> $scriptlog 2>&1 60 60 date >> $scriptlog 2>&1 61 61 exit;; … … 68 68 69 69 case $check0 in 70 1) echo "check0=$check0 -> ever thing ok -> do step" >> $scriptlog 2>&1;;70 1) echo "check0=$check0 -> everything ok -> do step" >> $scriptlog 2>&1;; 71 71 *) echo "check0=$check0 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;; 72 72 esac … … 95 95 96 96 case $check1 in 97 1) echo "check1=$check1 -> ever thing ok -> setting status..." >> $scriptlog 2>&197 1) echo "check1=$check1 -> everything ok -> setting status..." >> $scriptlog 2>&1 98 98 setstatuslogpath=$logpath/setstatus/buildsequenceentries/$year2 99 99 makedir $setstatuslogpath >> $scriptlog 2>&1 … … 101 101 check2=`root -q -b $macrospath/setstatus.C+\("\"$date\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslogpath/setstatus-buildsequenceentries-$date.log | grep int | sed -e 's/(int)//'` 102 102 case $check2 in 103 1) echo "check2=$check2 -> ever thing ok, status has been set" >> $scriptlog 2>&1;;103 1) echo "check2=$check2 -> everything ok, status has been set" >> $scriptlog 2>&1;; 104 104 *) echo "check2=$check2 -> ERROR -> step could not be set" >> $scriptlog 2>&1;; 105 105 esac -
trunk/MagicSoft/Mars/datacenter/scripts/checkfilesforsequenceavail
r7233 r7265 61 61 62 62 case $check0 in 63 1) echo "check0=$check0 -> ever thing ok -> do step" >> $scriptlog 2>&1 ;;63 1) echo "check0=$check0 -> everything ok -> do step" >> $scriptlog 2>&1 ;; 64 64 *) echo "check0=$check0 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 ;; 65 65 esac … … 89 89 90 90 case $check1 in 91 1) echo "check1=$check1 -> ever thing ok -> setting status..." >> $scriptlog 2>&191 1) echo "check1=$check1 -> everything ok -> setting status..." >> $scriptlog 2>&1 92 92 setstatuslogpath=$logpath/setstatus/checkfileavail/$no 93 93 makedir $setstatuslogpath >> $scriptlog 2>&1 … … 95 95 check2=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslogpath/setstatus-checkfileavail-$sequence.log | grep int | sed -e 's/(int)//'` 96 96 case $check2 in 97 1) echo "check2=$check2 -> ever thing ok, status has been set" >> $scriptlog 2>&1 ;;97 1) echo "check2=$check2 -> everything ok, status has been set" >> $scriptlog 2>&1 ;; 98 98 *) echo "check2=$check2 -> ERROR -> step could not be set" >> $scriptlog 2>&1 ;; 99 99 esac -
trunk/MagicSoft/Mars/datacenter/scripts/checkstardone
r7233 r7265 62 62 63 63 case $check0 in 64 1) echo "check0=$check0 -> ever thing ok -> do step" >> $scriptlog 2>&1 ;;64 1) echo "check0=$check0 -> everything ok -> do step" >> $scriptlog 2>&1 ;; 65 65 *) echo "check0=$check0 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 ;; 66 66 esac … … 104 104 105 105 case $check1 in 106 1) echo "check1=$check1 -> ever thing ok -> continue with next sequence..." >> $scriptlog 2>&1 ;;106 1) echo "check1=$check1 -> everything ok -> continue with next sequence..." >> $scriptlog 2>&1 ;; 107 107 *) echo "check1=$check1 -> ERROR " >> $scriptlog 2>&1 108 108 echo "starfiles not available for sequence -> continue" >> $scriptlog 2>&1 … … 117 117 check2=`root -q -b $macrospath/setstatus.C+\("\"$dataset\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslogpath/setstatus-checkstardone-$dataset.log | grep int | sed -e 's/(int)//'` 118 118 case $check2 in 119 1) echo "check2=$check2 -> ever thing ok, status has been set" >> $scriptlog 2>&1 ;;119 1) echo "check2=$check2 -> everything ok, status has been set" >> $scriptlog 2>&1 ;; 120 120 *) echo "check2=$check2 -> ERROR -> step could not be set" >> $scriptlog 2>&1 ;; 121 121 esac -
trunk/MagicSoft/Mars/datacenter/scripts/correcttime
r7233 r7265 52 52 53 53 case $check0 in 54 1) echo "check0=$check0 -> ever thing ok -> run correct_raw_time";;54 1) echo "check0=$check0 -> everything ok -> run correct_raw_time";; 55 55 *) echo "check0=$check0 -> ERROR -> step has to be repeated";; 56 56 esac … … 88 88 89 89 case $check1 in 90 1) echo "check1=$check1 -> ever thing ok -> setting status..."90 1) echo "check1=$check1 -> everything ok -> setting status..." 91 91 no=`printf %08d $run | cut -c 1-5` 92 92 setstatuspath=$logpath/setstatus/correct_raw_time/$no … … 97 97 case $check2 in 98 98 0) echo "check2=0 -> ERROR -> step could not be set";; 99 1) echo "check2=1 -> ever thing ok, status has been set";;99 1) echo "check2=1 -> everything ok, status has been set";; 100 100 esac 101 101 ;; -
trunk/MagicSoft/Mars/datacenter/scripts/doexclusions
r7233 r7265 42 42 todofile=$listpath/ToDo-$table-$column.txt 43 43 getstatuslogpath=$logpath/getstatus/doexclusions/$year 44 getstatuslog=$getstatuslogpath/getstatus-doexclu dions-$datetime.log44 getstatuslog=$getstatuslogpath/getstatus-doexclusions-$datetime.log 45 45 46 46 scriptlogpath=$logpath/run/doexclusions/`date +%Y/%m` … … 58 58 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;; 59 59 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1 60 echo "-> getting list for callistois running -> exit" >> $scriptlog 2>&160 echo "-> getting list for doexclusions is running -> exit" >> $scriptlog 2>&1 61 61 date >> $scriptlog 2>&1 62 62 exit;; … … 69 69 70 70 case $check0 in 71 1) echo "check0=$check0 -> ever thing ok -> do step" >> $scriptlog 2>&1;;71 1) echo "check0=$check0 -> everything ok -> do step" >> $scriptlog 2>&1;; 72 72 *) echo "check0=$check0 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;; 73 73 esac … … 88 88 for date in ${dates[@]} 89 89 do 90 echo "do exclusions for date "$date 90 echo "do exclusions for date "$date >> $scriptlog 2>&1 91 91 year2=`echo $date | cut -c 1-4` 92 92 doexclusionspath=$logpath/doexclusions/$year2 … … 96 96 97 97 case $check1 in 98 1) echo "check1= 1 -> everthing ok -> setting status..."98 1) echo "check1=$check1 -> everything ok -> setting status..." >> $scriptlog 2>&1 99 99 setstatuslogpath=$logpath/setstatus/doexclusions/$year2 100 100 makedir $setstatuslogpath >> $scriptlog 2>&1 … … 103 103 104 104 case $check2 in 105 1) echo "check2=$check2 -> ever thing ok, status has been set";;106 *) echo "check2=$check2 -> ERROR -> step could not be set" ;;105 1) echo "check2=$check2 -> everything ok, status has been set" >> $scriptlog 2>&1 ;; 106 *) echo "check2=$check2 -> ERROR -> step could not be set" >> $scriptlog 2>&1 ;; 107 107 esac 108 108 ;; 109 *) echo "check1=$check1 -> ERROR -> step has to be repeated" ;;109 *) echo "check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 ;; 110 110 esac 111 111 done -
trunk/MagicSoft/Mars/datacenter/scripts/filesondisk
r7233 r7265 50 50 51 51 case $check3 in 52 1) echo "check3=$check3 -> ever thing ok -> reset is done";;52 1) echo "check3=$check3 -> everything ok -> reset is done";; 53 53 *) echo "check3=$check3 -> ERROR -> something went wrong while resetting";; 54 54 esac … … 68 68 69 69 case $check0 in 70 1) echo "check0=$check0 -> ever thing ok -> reset is done";;70 1) echo "check0=$check0 -> everything ok -> reset is done";; 71 71 *) echo "check0=$check0 -> ERROR -> something went wrong while resetting";; 72 72 esac … … 78 78 79 79 case $check1 in 80 1) echo "check1=$check1 -> ever thing ok -> missing cacofiles are found";;80 1) echo "check1=$check1 -> everything ok -> missing cacofiles are found";; 81 81 *) echo "check1=$check1 -> ERROR -> something went wrong while resetting";; 82 82 esac … … 110 110 111 111 case $check2 in 112 1) echo "check2=$check2 -> ever thing ok -> insert is done";;112 1) echo "check2=$check2 -> everything ok -> insert is done";; 113 113 *) echo "check2=$check2 -> ERROR -> something went wrong while inserting run "$missingcacorun;; 114 114 esac … … 133 133 134 134 case $check4 in 135 1) echo "check4=$check4 -> ever thing ok -> reset is done";;135 1) echo "check4=$check4 -> everything ok -> reset is done";; 136 136 *) echo "check4=$check4 -> ERROR -> something went wrong while resetting";; 137 137 esac -
trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto
r7233 r7265 68 68 69 69 case $check0 in 70 1) echo "check0=$check0 -> ever thing ok -> run fillcallisto" >> $scriptlog 2>&1;;70 1) echo "check0=$check0 -> everything ok -> run fillcallisto" >> $scriptlog 2>&1;; 71 71 *) echo "check0=$check0 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;; 72 72 esac … … 103 103 104 104 case $check1 in 105 1) echo "check1=$check1 -> ever thing ok -> run fillsignal " >> $scriptlog 2>&1;;105 1) echo "check1=$check1 -> everything ok -> run fillsignal " >> $scriptlog 2>&1;; 106 106 *) echo "check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 107 107 continue;; … … 110 110 check2=`root -q -b $macrospath/fillsignal.C+\("\"$signalfile\""\,kFALSE\) | tee $fillsignallog | grep int | sed -e 's/(int)//'` 111 111 case $check2 in 112 1) echo "check2=$check2 -> ever thing ok " >> $scriptlog 2>&1112 1) echo "check2=$check2 -> everything ok " >> $scriptlog 2>&1 113 113 echo "-> inserting the status for fillcallisto for sequence $sequence into the db" >> $scriptlog 2>&1 114 114 setstatuslogpath=$logpath/setstatus/fillcallisto/$no … … 118 118 check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog-$sequence.log | grep int | sed -e 's/(int)//'` 119 119 case $check4 in 120 1) echo "check4=$check4 -> ever thing ok, status has been set" >> $scriptlog 2>&1;;120 1) echo "check4=$check4 -> everything ok, status has been set" >> $scriptlog 2>&1;; 121 121 *) echo "check4=$check4 -> ERROR -> step could not be set" >> $scriptlog 2>&1;; 122 122 esac -
trunk/MagicSoft/Mars/datacenter/scripts/fillstar
r7233 r7265 67 67 68 68 case $check0 in 69 1) echo "check0=$check0 -> ever thing ok -> run fillstar" >> $scriptlog 2>&1;;69 1) echo "check0=$check0 -> everything ok -> run fillstar" >> $scriptlog 2>&1;; 70 70 *) echo "check0=$check0 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;; 71 71 esac … … 98 98 check2=`root -q -b $macrospath/fillstar.C+\("\"$starfile\""\,kFALSE\) | tee $fillstarlog | grep int | sed -e 's/(int)//'` 99 99 case $check2 in 100 1) echo "check2=$check2 -> ever thing ok " >> $scriptlog 2>&1100 1) echo "check2=$check2 -> everything ok " >> $scriptlog 2>&1 101 101 echo "-> inserting the status for fillstar for sequence $sequence into the db" >> $scriptlog 2>&1 102 102 setstatuslogpath=$logpath/setstatus/fillstar/$no … … 106 106 check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'` 107 107 case $check4 in 108 1) echo "check4=$check4 -> ever thing ok, status has been set" >> $scriptlog 2>&1;;108 1) echo "check4=$check4 -> everything ok, status has been set" >> $scriptlog 2>&1;; 109 109 *) echo "check4=$check4 -> ERROR -> step could not be set" >> $scriptlog 2>&1;; 110 110 esac -
trunk/MagicSoft/Mars/datacenter/scripts/insertdatasets
r7233 r7265 49 49 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;; 50 50 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1 51 echo "-> getting list for callistois running -> exit" >> $scriptlog 2>&151 echo "-> getting list for insertdatasets is running -> exit" >> $scriptlog 2>&1 52 52 date >> $scriptlog 2>&1 53 53 exit;; … … 94 94 check0=`root -q -b $macrospath/insertdataset.C+\("\"$no2\""\,"\"$source\""\,"\"$wobble\"",kFALSE\) | tee $insertdatasetlog | grep int | sed -e 's/(int)//'` 95 95 case $check0 in 96 1) echo "check0=$check0 -> ever thing ok " >> $scriptlog 2>&1 ;;96 1) echo "check0=$check0 -> everything ok " >> $scriptlog 2>&1 ;; 97 97 *) echo "check0=$check0 -> ERROR " >> $scriptlog 2>&1 ;; 98 98 esac -
trunk/MagicSoft/Mars/datacenter/scripts/runcallisto
r7256 r7265 77 77 78 78 case $check0 in 79 1) echo "check0=$check0 -> ever thing ok -> run callisto" >> $scriptlog 2>&1;;79 1) echo "check0=$check0 -> everything ok -> run callisto" >> $scriptlog 2>&1;; 80 80 *) echo "check0=$check0 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;; 81 81 esac … … 160 160 161 161 case $check1 in 162 0) echo "check1=$check1 -> ever thing ok -> doing update..." >> $scriptlog 2>&1162 0) echo "check1=$check1 -> everything ok -> doing update..." >> $scriptlog 2>&1 163 163 echo "finding files to be updated" >> $scriptlog 2>&1 164 164 calfiles=`find $outpath -name *_Y_* ` … … 211 211 check2=$? 212 212 case $check2 in 213 0) echo "check2=$check2 -> ever thing ok, merppccupdate worked -> continue" >> $scriptlog 2>&1;;213 0) echo "check2=$check2 -> everything ok, merppccupdate worked -> continue" >> $scriptlog 2>&1;; 214 214 *) echo "check2=$check2 -> ERROR -> merppccupdate failed" >> $scriptlog 2>&1 215 215 continue 2 ;; … … 218 218 check3=$? 219 219 case $check3 in 220 0) echo "check3=$check3 -> ever thing ok, merppcacoupdate worked -> continue" >> $scriptlog 2>&1;;220 0) echo "check3=$check3 -> everything ok, merppcacoupdate worked -> continue" >> $scriptlog 2>&1;; 221 221 *) echo "check3=$check3 -> ERROR -> merppcacoupdate failed" >> $scriptlog 2>&1 222 222 continue 2 ;; … … 231 231 check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'` 232 232 case $check4 in 233 1) echo "check4=$check4 -> ever thing ok, status has been set" >> $scriptlog 2>&1;;233 1) echo "check4=$check4 -> everything ok, status has been set" >> $scriptlog 2>&1;; 234 234 *) echo "check4=$check4 -> ERROR -> step could not be set" >> $scriptlog 2>&1;; 235 235 esac -
trunk/MagicSoft/Mars/datacenter/scripts/runganymed
r7258 r7265 75 75 76 76 case $check0 in 77 1) echo "check0=$check0 -> ever thing ok -> run ganymed" >> $scriptlog 2>&1;;77 1) echo "check0=$check0 -> everything ok -> run ganymed" >> $scriptlog 2>&1;; 78 78 *) echo "check0=$check0 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;; 79 79 esac … … 153 153 154 154 case $check1 in 155 0) echo "check1=$check1 -> ever thing ok " >> $scriptlog 2>&1155 0) echo "check1=$check1 -> everything ok " >> $scriptlog 2>&1 156 156 echo "-> inserting the status for ganymed for dataset $dataset into the db" >> $scriptlog 2>&1 157 157 setstatuslogpath=$logpath/setstatus/ganymed/$no … … 161 161 check4=`root -q -b $macrospath/setstatus.C+\("\"$dataset\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'` 162 162 case $check4 in 163 1) echo "check4=$check4 -> ever thing ok, status has been set" >> $scriptlog 2>&1;;163 1) echo "check4=$check4 -> everything ok, status has been set" >> $scriptlog 2>&1;; 164 164 *) echo "check4=$check4 -> ERROR -> step could not be set" >> $scriptlog 2>&1;; 165 165 esac -
trunk/MagicSoft/Mars/datacenter/scripts/runstar
r7258 r7265 74 74 75 75 case $check0 in 76 1) echo "check0=$check0 -> ever thing ok -> run star" >> $scriptlog 2>&1;;76 1) echo "check0=$check0 -> everything ok -> run star" >> $scriptlog 2>&1;; 77 77 *) echo "check0=$check0 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;; 78 78 esac … … 145 145 146 146 case $check1 in 147 0) echo "check1=$check1 -> ever thing ok " >> $scriptlog 2>&1147 0) echo "check1=$check1 -> everything ok " >> $scriptlog 2>&1 148 148 echo "-> inserting the status for star for sequence $sequence into the db" >> $scriptlog 2>&1 149 149 setstatuslogpath=$logpath/setstatus/star/$no … … 153 153 check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'` 154 154 case $check4 in 155 1) echo "check4=$check4 -> ever thing ok, status has been set" >> $scriptlog 2>&1;;155 1) echo "check4=$check4 -> everything ok, status has been set" >> $scriptlog 2>&1;; 156 156 *) echo "check4=$check4 -> ERROR -> step could not be set" >> $scriptlog 2>&1;; 157 157 esac -
trunk/MagicSoft/Mars/datacenter/scripts/writesequencefiles
r7233 r7265 67 67 68 68 case $check0 in 69 1) echo "check0=$check0 -> ever thing ok -> run writesequencefiles" >> $scriptlog 2>&1;;69 1) echo "check0=$check0 -> everything ok -> run writesequencefiles" >> $scriptlog 2>&1;; 70 70 *) echo "check0=$check0 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;; 71 71 esac … … 98 98 check2=`root -q -b $macrospath/writesequencefile.C+\($sequence\,"\"$sequpath\""\) | tee $writesequencefilelogpath/writesequencefile-$no2.log | grep int | sed -e 's/(int)//'` 99 99 case $check2 in 100 1) echo "check2=$check2 -> ever thing ok " >> $scriptlog 2>&1100 1) echo "check2=$check2 -> everything ok " >> $scriptlog 2>&1 101 101 echo "-> inserting the status for writesequencefile for sequence $sequence into the db" >> $scriptlog 2>&1 102 102 setstatuslogpath=$logpath/setstatus/writesequencefile/$no … … 106 106 check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'` 107 107 case $check4 in 108 1) echo "check4=$check4 -> ever thing ok, status has been set" >> $scriptlog 2>&1;;108 1) echo "check4=$check4 -> everything ok, status has been set" >> $scriptlog 2>&1;; 109 109 *) echo "check4=$check4 -> ERROR -> step could not be set" >> $scriptlog 2>&1;; 110 110 esac
Note:
See TracChangeset
for help on using the changeset viewer.