#include #include #include #include #include #include /* Add MACRO Definitions for min/max */ /* Needed as of EPICS BASE R3-14-11 */ /* provide an macro that implements max() and min() */ #ifndef __cplusplus #ifndef max #define max(a,b) (((a)>(b)) ? (a) : (b)) #endif #ifndef min #define min(a,b) (((a)<(b)) ? (a) : (b)) #endif #endif static long InitScriptSub( subRecord *psub) { return 0; } static long ScriptSub( subRecord *psub) { if( psub == NULL) return 0; system("/afs/slac/g/lcls/tools/script/sonyaRestart sioc-sys0-cv01"); return 0; } epicsRegisterFunction(InitScriptSub); epicsRegisterFunction(ScriptSub);