Changeset 42464
- Timestamp:
- May 12, 2023, 11:20:42 AM (3 years ago)
- Location:
- trunk/tools/eam/rawfix.20230221/src
- Files:
-
- 4 edited
-
advance.rawfix.pl (modified) (1 diff)
-
rawfix.burntool.pt (modified) (3 diffs)
-
rawfix.fixchip.pt (modified) (5 diffs)
-
rawfix.md5sum.pt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/eam/rawfix.20230221/src/advance.rawfix.pl
r42462 r42464 56 56 57 57 # select and advance nights already running 58 my $sql_get_run = "SELECT dateobs from nights where state like '%.done' ";58 my $sql_get_run = "SELECT dateobs from nights where state like '%.done' and state != 'md5fix.done'"; 59 59 my $runref = $raw_dbh->selectall_arrayref( $sql_get_run ); 60 60 my @runarray = @$runref; -
trunk/tools/eam/rawfix.20230221/src/rawfix.burntool.pt
r42462 r42464 146 146 book getword burnhost.book $pageName fixhost -var BURNHOST 147 147 book getword burnhost.book $pageName chipID -var CHIP_ID 148 option $pageName $DATEOBS149 150 stdout $DATEOBS/log.burntool.run.$CHIP_ID.v$ITER151 stderr $DATEOBS/log.burntool.run.$CHIP_ID.v$ITER152 148 153 149 substr $DATEOBS 0 4 YEAR … … 156 152 sprintf STARTDATE "%s/%s/%s" $YEAR $MONTH $DAY 157 153 sprintf ENDDATE "%s/%s/%s,23:59:59" $YEAR $MONTH $DAY 154 155 option $pageName $DATEOBS $YEAR 156 # save DATEOBS so we can find the md5sum.book entry 157 # also save YEAR for output log 158 159 stdout $mypath/$YEAR/$DATEOBS/log.burntool.run.$CHIP_ID.v$ITER 160 stderr $mypath/$YEAR/$DATEOBS/log.burntool.run.$CHIP_ID.v$ITER 158 161 159 162 host -required $BURNHOST … … 274 277 $Ndone ++ 275 278 book setword burntool.book $options:1 NDONE $Ndone 279 280 sprintf tmpline "%s/%s/%s/log.burntool.runhosts.v%d" $mypath $options:2 $options:1 $ITER 276 281 if ("$1" != "OK") 277 282 book setword burntool.book $options:1 pantasksQuality $1 278 sprintf tmpline "%s/%s/log.burntool.runhosts.v%d" $mypath $options:1 $ITER279 283 exec echo "failure $1 $options:0" >> $tmpline 280 284 else -
trunk/tools/eam/rawfix.20230221/src/rawfix.fixchip.pt
r42462 r42464 86 86 # save the page so we can use it below 87 87 88 substr $DATEOBS 0 4 YEAR 89 88 90 # write an entry point in the log for this night 89 sprintf tmpline "%s/%s/ log.fixchip.runhosts.v%d" $mypath$DATEOBS $ITER91 sprintf tmpline "%s/%s/%s/log.fixchip.runhosts.v%d" $mypath $YEAR $DATEOBS $ITER 90 92 date -var mydate 91 93 exec echo "# start runhosts $mydate" >> $tmpline … … 149 151 book getword fixhost.book $pageName fixhost -var FIXHOST 150 152 book getword fixhost.book $pageName chipID -var CHIP_ID 151 option $pageName $DATEOBS152 153 153 154 substr $DATEOBS 0 4 YEAR … … 155 156 substr $DATEOBS 6 2 DAY 156 157 sprintf FULLDATE "%s/%s/%s" $YEAR $MONTH $DAY 158 159 option $pageName $DATEOBS $YEAR 160 # save DATEOBS so we can find the md5sum.book entry 161 # also save YEAR for output log 157 162 158 163 stdout $mypath/$YEAR/$DATEOBS/log.fixchip.run.$CHIP_ID.v$ITER … … 268 273 end 269 274 275 # options are : pagename DATEOBS YEAR 276 270 277 book setword fixhost.book $options:0 pantaskState DONE 271 278 book getword fixchip.book $options:1 NHOST -var Nhosts … … 274 281 $Ndone ++ 275 282 book setword fixchip.book $options:1 NDONE $Ndone 283 284 sprintf tmpline "%s/%s/%s/log.fixchip.runhosts.v%d" $mypath $options:2 $options:1 $ITER 276 285 if ("$1" != "OK") 277 286 book setword fixchip.book $options:1 pantasksQuality $1 278 sprintf tmpline "%s/%s/log.fixchip.runhosts.v%d" $mypath $options:1 $ITER279 287 exec echo "failure $1 $options:0" >> $tmpline 280 288 else -
trunk/tools/eam/rawfix.20230221/src/rawfix.md5sum.pt
r42462 r42464 86 86 # save the page so we can use it below 87 87 88 substr $DATEOBS 0 4 YEAR 89 88 90 # write an entry point in the log for this night 89 sprintf tmpline "%s/%s/ log.md5sum.runhosts.v%d" $mypath$DATEOBS $ITER91 sprintf tmpline "%s/%s/%s/log.md5sum.runhosts.v%d" $mypath $YEAR $DATEOBS $ITER 90 92 date -var mydate 91 93 exec echo "# start runhosts $mydate" >> $tmpline … … 153 155 book getword md5host.book $pageName md5host -var MD5HOST 154 156 155 option $pageName $DATEOBS 157 substr $DATEOBS 0 4 YEAR 158 159 option $pageName $DATEOBS $YEAR 156 160 # save DATEOBS so we can find the md5sum.book entry 157 158 substr $DATEOBS 0 4 YEAR 161 # also save YEAR for output log 159 162 160 163 # does the output go here? 161 stdout $mypath/$YEAR/$DATEOBS/log.md5sum. runhosts.v$ITER162 stderr $mypath/$YEAR/$DATEOBS/log.md5sum. runhosts.v$ITER164 stdout $mypath/$YEAR/$DATEOBS/log.md5sum.$MD5HOST.v$ITER 165 stderr $mypath/$YEAR/$DATEOBS/log.md5sum.$MD5HOST.v$ITER 163 166 164 167 $USE_HOST = $MD5HOST … … 276 279 end 277 280 281 # options are : pagename DATEOBS YEAR 282 278 283 book setword md5host.book $options:0 pantaskState DONE 279 284 book getword md5sum.book $options:1 NHOST -var Nhosts … … 282 287 $Ndone ++ 283 288 book setword md5sum.book $options:1 NDONE $Ndone 289 290 sprintf tmpline "%s/%s/%s/log.md5sum.runhosts.v%d" $mypath $options:2 $options:1 $ITER 284 291 if ("$1" != "OK") 285 292 book setword md5sum.book $options:1 pantasksQuality $1 286 sprintf tmpline "%s/%s/log.md5sum.runhosts.v%d" $mypath $options:1 $ITER287 293 exec echo "failure $1 $options:0" >> $tmpline 288 294 else
Note:
See TracChangeset
for help on using the changeset viewer.
