IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

more fixes to the directory hierarchy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.