-If RunLog_write() fails, hpf2srvr goes into an endless loop. This can probably be repeated by removing runs directory before starting a run. -Also the error cases where run is already active when Run Begin command is received are not handled correctly, since the run log will have already been written and the run number incremented. Test use of configuration.def Document additional header stuff in DR2tmc Move run* into nortlib before moving on to hpf1 -/usr/local/include/runnum.h { -Add to OSU.1 } -nortlib run*.c drinit.c { -Clean up subjects (HPF Command Server Functions) } -/usr/local/include/oui/runnum.oui, drext.oui -/usr/local/lib/src/hpfrun.cmd { -Add to OSU.1 } -DR2tmc could go into /usr/local/bin { needs to be documented } osupdate -f OSU.423 1 43 osupdate 1 43 -Need to add code to handle the socket connection... -Will need to deal with additional definitions which might change from run-to-run configuration.def. This stuff should go into runs/%03d.log, but it needs to appear in the final output *after* the column definitions. However, column definitions are a function of the extraction program, not of the data stream, and so are subject to change *after* the run is completed. Probably the tightest way to handle this is to do a skeleton thing that outputs the top of runs/%03d.log, then outputs the column definitions, then outputs the rest of runs/%03d.log. Ugh...