Script event

Name

Script event -- Executing a shell-script at given times

Synopsis


#include <gfs.h>


#define     GFS_EVENT_SCRIPT                (obj)
#define     GFS_IS_EVENT_SCRIPT             (obj)

struct      GfsEventScript;

GfsEventClass* gfs_event_script_class       (void);

Description

GfsEventScript can be used to execute a shell-script at given intervals.

The syntax in parameter files is as follows:

[ GfsEvent ] {
  COMMANDS
}

where COMMANDS is the script to be executed with /bin/sh.

Several shell variables are set:

GfsTimethe physical time
GfsIterthe iteration number
GfsPidthe processor number
GFS_STOPif the exit status of the shell script is GFS_STOP the simulation is terminated

Details

GFS_EVENT_SCRIPT()

#define     GFS_EVENT_SCRIPT(obj)

obj :


GFS_IS_EVENT_SCRIPT()

#define     GFS_IS_EVENT_SCRIPT(obj)

obj :


struct GfsEventScript

struct GfsEventScript {

  GfsEvent parent;

  GString * script;
};


gfs_event_script_class ()

GfsEventClass* gfs_event_script_class       (void);

Returns :