Changeset 42445 for trunk/tools/eam/rawfix.20230221/src/rawfix.md5sum.pt
- Timestamp:
- Apr 7, 2023, 4:50:38 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/eam/rawfix.20230221/src/rawfix.md5sum.pt
r42441 r42445 80 80 book setword md5sum.book $pageName pantaskState RUN 81 81 book getword md5sum.book $pageName dateobs -var DATEOBS 82 book getword md5sum.book $pageName iter -var ITER 82 83 option $pageName 83 84 # save the page so we can use it below 84 85 85 86 # write an entry point in the log for this night 86 sprintf tmpline "%s/%s/log.md5sum.runhosts.v 0" $mypath $DATEOBS87 sprintf tmpline "%s/%s/log.md5sum.runhosts.v%d" $mypath $DATEOBS $ITER 87 88 date -var mydate 88 89 exec echo "# start runhosts $mydate" >> $tmpline 89 90 90 command $mypath/get_hosts_md5s.sh $mypath $DATEOBS v0 91 # the command returns these fields: dateobs stage md5host 92 # NOTE: stage == ITER 93 command $mypath/get_hosts_md5s.sh $mypath $DATEOBS $ITER 91 94 end 92 95 … … 142 145 if ("$pageName" == "NULL") break 143 146 147 # XXX NOTE: the output field is called 'stage' 144 148 book setword md5host.book $pageName pantaskState RUN 145 149 book getword md5host.book $pageName dateobs -var DATEOBS 150 book getword md5host.book $pageName stage -var ITER 146 151 book getword md5host.book $pageName md5host -var MD5HOST 147 152 … … 150 155 151 156 # does the output go here? 152 stdout $mypath/$DATEOBS/log.md5sum.runhosts.v 0153 stderr $mypath/$DATEOBS/log.md5sum.runhosts.v 0157 stdout $mypath/$DATEOBS/log.md5sum.runhosts.v$ITER 158 stderr $mypath/$DATEOBS/log.md5sum.runhosts.v$ITER 154 159 155 160 # XXX TEST: $USE_HOST = ipp060 … … 167 172 168 173 ## even when testing, use the original hostname here: 169 $input = $mypath/$DATEOBS/$MD5HOST.inst. v0.txt174 $input = $mypath/$DATEOBS/$MD5HOST.inst.$ITER.txt 170 175 171 176 # need to make sure this will work on the ipp b-nodes: 172 177 # if we are able to run the 'exec', use a short retry time to launch all outstanding jobs 173 178 periods -exec 0.05 174 command $mypath/get_md5s_instances.pl --hostname $USE_HOST --input $input --stage v0179 command $mypath/get_md5s_instances.pl --hostname $USE_HOST --input $input --stage $ITER 175 180 end 176 181 … … 271 276 book getword md5sum.book $options:1 NHOST -var Nhosts 272 277 book getword md5sum.book $options:1 NDONE -var Ndone 278 book getword md5sum.book $options:1 stage -var ITER 273 279 $Ndone ++ 274 280 book setword md5sum.book $options:1 NDONE $Ndone 275 281 if ("$1" != "OK") 276 282 book setword md5sum.book $options:1 pantasksQuality $1 277 sprintf tmpline "%s/%s/log.md5sum.runhosts.v 0" $mypath $options:1283 sprintf tmpline "%s/%s/log.md5sum.runhosts.v%d" $mypath $options:1 $ITER 278 284 exec echo "failure $1 $options:0" >> $tmpline 279 285 else
Note:
See TracChangeset
for help on using the changeset viewer.
