IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42464


Ignore:
Timestamp:
May 12, 2023, 11:20:42 AM (3 years ago)
Author:
eugene
Message:

more fixes to the directory hierarchy

Location:
trunk/tools/eam/rawfix.20230221/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/eam/rawfix.20230221/src/advance.rawfix.pl

    r42462 r42464  
    5656
    5757    # 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'";
    5959    my $runref   = $raw_dbh->selectall_arrayref( $sql_get_run );
    6060    my @runarray = @$runref;
  • trunk/tools/eam/rawfix.20230221/src/rawfix.burntool.pt

    r42462 r42464  
    146146    book getword burnhost.book $pageName fixhost -var BURNHOST
    147147    book getword burnhost.book $pageName chipID  -var CHIP_ID
    148     option $pageName $DATEOBS
    149 
    150     stdout $DATEOBS/log.burntool.run.$CHIP_ID.v$ITER
    151     stderr $DATEOBS/log.burntool.run.$CHIP_ID.v$ITER
    152148
    153149    substr $DATEOBS 0 4 YEAR
     
    156152    sprintf STARTDATE "%s/%s/%s" $YEAR $MONTH $DAY
    157153    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
    158161
    159162    host -required $BURNHOST
     
    274277  $Ndone ++
    275278  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
    276281  if ("$1" != "OK")
    277282    book setword burntool.book $options:1 pantasksQuality $1
    278     sprintf tmpline "%s/%s/log.burntool.runhosts.v%d" $mypath $options:1 $ITER
    279283    exec echo "failure $1 $options:0" >> $tmpline
    280284  else
  • trunk/tools/eam/rawfix.20230221/src/rawfix.fixchip.pt

    r42462 r42464  
    8686    # save the page so we can use it below
    8787
     88    substr $DATEOBS 0 4 YEAR
     89
    8890    # write an entry point in the log for this night
    89     sprintf tmpline "%s/%s/log.fixchip.runhosts.v%d" $mypath $DATEOBS $ITER
     91    sprintf tmpline "%s/%s/%s/log.fixchip.runhosts.v%d" $mypath $YEAR $DATEOBS $ITER
    9092    date -var mydate
    9193    exec echo "# start runhosts $mydate" >> $tmpline
     
    149151    book getword fixhost.book $pageName fixhost -var FIXHOST
    150152    book getword fixhost.book $pageName chipID  -var CHIP_ID
    151     option $pageName $DATEOBS
    152153
    153154    substr $DATEOBS 0 4 YEAR
     
    155156    substr $DATEOBS 6 2 DAY
    156157    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
    157162
    158163    stdout $mypath/$YEAR/$DATEOBS/log.fixchip.run.$CHIP_ID.v$ITER
     
    268273  end
    269274
     275  # options are : pagename DATEOBS YEAR
     276
    270277  book setword fixhost.book $options:0 pantaskState DONE
    271278  book getword fixchip.book $options:1 NHOST -var Nhosts
     
    274281  $Ndone ++
    275282  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
    276285  if ("$1" != "OK")
    277286    book setword fixchip.book $options:1 pantasksQuality $1
    278     sprintf tmpline "%s/%s/log.fixchip.runhosts.v%d" $mypath $options:1 $ITER
    279287    exec echo "failure $1 $options:0" >> $tmpline
    280288  else
  • trunk/tools/eam/rawfix.20230221/src/rawfix.md5sum.pt

    r42462 r42464  
    8686    # save the page so we can use it below
    8787
     88    substr $DATEOBS 0 4 YEAR
     89
    8890    # write an entry point in the log for this night
    89     sprintf tmpline "%s/%s/log.md5sum.runhosts.v%d" $mypath $DATEOBS $ITER
     91    sprintf tmpline "%s/%s/%s/log.md5sum.runhosts.v%d" $mypath $YEAR $DATEOBS $ITER
    9092    date -var mydate
    9193    exec echo "# start runhosts $mydate" >> $tmpline
     
    153155    book getword md5host.book $pageName md5host -var MD5HOST
    154156
    155     option $pageName $DATEOBS
     157    substr $DATEOBS 0 4 YEAR
     158
     159    option $pageName $DATEOBS $YEAR
    156160    # save DATEOBS so we can find the md5sum.book entry
    157 
    158     substr $DATEOBS 0 4 YEAR
     161    # also save YEAR for output log
    159162
    160163    # does the output go here?
    161     stdout $mypath/$YEAR/$DATEOBS/log.md5sum.runhosts.v$ITER 
    162     stderr $mypath/$YEAR/$DATEOBS/log.md5sum.runhosts.v$ITER 
     164    stdout $mypath/$YEAR/$DATEOBS/log.md5sum.$MD5HOST.v$ITER 
     165    stderr $mypath/$YEAR/$DATEOBS/log.md5sum.$MD5HOST.v$ITER 
    163166
    164167    $USE_HOST = $MD5HOST
     
    276279  end
    277280
     281  # options are : pagename DATEOBS YEAR
     282
    278283  book setword md5host.book $options:0 pantaskState DONE
    279284  book getword md5sum.book $options:1 NHOST -var Nhosts
     
    282287  $Ndone ++
    283288  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
    284291  if ("$1" != "OK")
    285292    book setword md5sum.book $options:1 pantasksQuality $1
    286     sprintf tmpline "%s/%s/log.md5sum.runhosts.v%d" $mypath $options:1 $ITER
    287293    exec echo "failure $1 $options:0" >> $tmpline
    288294  else
Note: See TracChangeset for help on using the changeset viewer.