RunLog_write

Synopsis

      #include "runnum.h"
      FILE *RunLog_write( char *runtype ) {
      void RunLog_hdr( FILE *fp, char *hdr, char *val ) {
      void RunLog_close( FILE *fp ) {
      void Run_LinkAlgo( char *link, char *src ) {

Description

RunLog_write() attempts to create a new HPF run log, writing out the initial "!Begin Run" and "!RunType" lines. It will die if rundate has not been successfully initialized by RunNum_init(). RunLog_write() calls srvr_runHasBegun() to determine whether a run is currently executing, and refuses to create a new run log if so.

RunLog_hdr() is a simple support routine to output lines of the form "! " to a currently open run log.

RunLog_close() outputs the "!Defs" line to the open run log as well as the contents of configuration.def if present, closes the file, links "hpfrun.alg" to the specified algo and calls srvr_BeginRun() to actually start the run.

Returns

RunLog_write() return the FILE pointer to the newly create run log on success or NULL on failure. None of the other routines return values.

See Also

HPF Command Server Routines, HPF Support Routines.

Source File

/usr/local/src/nortlib/runwrite.c

Alphabetical List
Subject List
Return to Manuals Page
webmaster@huarp.harvard.edu
Copyright 2001 by the President and Fellows of Harvard College