#include #include #include #include #include #include #include #include long continuousLoad(struct subRecord *psub) { char command[50]; char source[50]; strcpy( source, "source $APP/TpgPatternSetup/lcls2-timing-patterns/env.sh" ); strcpy( command, "python $APP/TpgPatternSetup/lcls2-timing-patterns/tools/push2tpg.py" ); //printf("Running script %s\n", psub->desc); //system(psub->desc); printf("Running script %s\n", command); system(source); system(command); psub->val=0; return(0); } epicsRegisterFunction(continuousLoad);