#include #include #include #include #include #include #include #include long continuousApply(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/apply2tpg" ); //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(continuousApply);