Changeset 7960
- Timestamp:
- Jul 24, 2006, 3:15:49 PM (20 years ago)
- Location:
- trunk/Ohana/src/opihi
- Files:
-
- 2 added
- 14 edited
-
dvo/dvo.c (modified) (2 diffs)
-
dvo/fitcolors.c (modified) (1 diff)
-
dvo/fitsed.c (modified) (1 diff)
-
dvo/gstar.c (modified) (1 diff)
-
include/dvoshell.h (modified) (1 diff)
-
include/pantasks.h (modified) (1 diff)
-
pantasks/Makefile (modified) (2 diffs)
-
pantasks/init.c (modified) (2 diffs)
-
pantasks/init_server.c (added)
-
pantasks/pantasks.c (modified) (2 diffs)
-
pantasks/server_threads.c (modified) (4 diffs)
-
pantasks/status.c (modified) (1 diff)
-
pantasks/status_server.c (added)
-
pantasks/task.c (modified) (1 diff)
-
pclient/pclient.c (modified) (1 diff)
-
pcontrol/pcontrol.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/dvo/dvo.c
r7917 r7960 17 17 InitAstro (); 18 18 InitDVO (); 19 20 gprintInit (); 19 21 20 22 if (!SetCATDIR (NULL, FALSE)) { … … 48 50 return; 49 51 } 52 53 /* call to opihi shell */ 54 int main (int argc, char **argv) { 55 int status; 56 status = opihi (argc, argv); 57 exit (status); 58 } -
trunk/Ohana/src/opihi/dvo/fitcolors.c
r7917 r7960 268 268 /* perform robust fit on dmag vs color */ 269 269 cmd = strcreate ("fit tmp_x tmp_y 1 -clip 3 3 -quiet"); 270 status = command (cmd, &outcmd );270 status = command (cmd, &outcmd, TRUE); 271 271 if (outcmd != NULL) free (outcmd); 272 272 -
trunk/Ohana/src/opihi/dvo/fitsed.c
r7917 r7960 85 85 remove_argument (N, &argc, argv); 86 86 PLOT = TRUE; 87 }88 89 SAVEDIR = NULL;90 if ((N = get_argument (argc, argv, "-save"))) {91 remove_argument (N, &argc, argv);92 SAVEDIR = strcreate (argv[N]);93 remove_argument (N, &argc, argv);94 87 } 95 88 -
trunk/Ohana/src/opihi/dvo/gstar.c
r7917 r7960 1 1 # include "dvoshell.h" 2 2 3 void print_value (double value, short int ival);4 3 void initPhotcodeSequence (int Nsec); 5 4 void freePhotcodeSequence (); -
trunk/Ohana/src/opihi/include/dvoshell.h
r7680 r7960 88 88 int match_image PROTO((Image *image, int Nimage, unsigned int T, short int S)); 89 89 int match_image_subset PROTO((Image *image, int *subset, int Nsubset, unsigned int T, short int S)); 90 void print_value PROTO(( FILE *f,double value, short int ival));90 void print_value PROTO((double value, short int ival)); 91 91 void sort_image_subset PROTO((Image *image, int *subset, int N)); 92 92 void sort_images PROTO((Image *image, int N)); -
trunk/Ohana/src/opihi/include/pantasks.h
r7952 r7960 217 217 void CheckTasksSetState (int state); 218 218 int CheckTasksGetState (); 219 void CheckTasksThread (); 219 void CheckTasksThread (void *data); 220 220 221 void CheckJobsSetState (int state); 221 222 int CheckJobsGetState (); 222 void CheckJobsThread (); 223 void CheckJobsThread (void *data); 224 223 225 void CheckControllerSetState (int state); 224 226 int CheckControllerGetState (); 225 void CheckControllerThread (); 227 void CheckControllerThread (void *data); 228 226 229 void CheckInputsSetState (int state); 227 230 int CheckInputsGetState (); 228 void CheckInputsThread ( );231 void CheckInputsThread (void *data); 229 232 230 233 // functions related to the queue of input files -
trunk/Ohana/src/opihi/pantasks/Makefile
r7952 r7960 48 48 $(SDIR)/kill.$(ARCH).o \ 49 49 $(SDIR)/delete.$(ARCH).o \ 50 $(SDIR)/server.$(ARCH).o \51 50 $(SDIR)/verbose.$(ARCH).o \ 52 51 $(SDIR)/controller.$(ARCH).o \ … … 79 78 $(SDIR)/InputQueue.$(ARCH).o \ 80 79 $(SDIR)/ListenClients.$(ARCH).o \ 80 $(SDIR)/server.$(ARCH).o \ 81 $(SDIR)/status_server.$(ARCH).o \ 82 $(SDIR)/init_server.$(ARCH).o \ 81 83 $(SDIR)/CheckPassword.$(ARCH).o 82 84 -
trunk/Ohana/src/opihi/pantasks/init.c
r7929 r7960 38 38 }; 39 39 40 /* these are functions which duplicate actions on the41 controller. these could simply pass the command along42 to the controller (and should then be in 'controller'),43 or they could add / modify the jobs in the scheduler44 job stack45 46 {"job", job, "add job"},47 {"kill", kill_sh, "kill job"},48 {"delete", delete, "delete job"},49 {"stdout", stdout_sh, "get stdout buffer for job"},50 {"stderr", stderr_sh, "get stderr buffer for job"},51 */52 53 40 void InitPantasks () { 54 41 … … 62 49 AddCommand (&cmds[i]); 63 50 } 64 65 51 } 66 67 int server PROTO((int, char **));68 69 static Command server_cmds[] = {70 {"server", server, "server-specific commands"},71 };72 73 void InitPantasksServer () {74 75 int i;76 77 InitTasks ();78 InitJobs ();79 InitJobIDs ();80 81 for (i = 0; i < sizeof (cmds) / sizeof (Command); i++) {82 AddCommand (&cmds[i]);83 }84 for (i = 0; i < sizeof (server_cmds) / sizeof (Command); i++) {85 AddCommand (&server_cmds[i]);86 }87 88 } -
trunk/Ohana/src/opihi/pantasks/pantasks.c
r7917 r7960 16 16 InitData (); 17 17 InitPantasks (); 18 19 gprintInit (); 18 20 19 21 rl_readline_name = opihi_name; … … 54 56 return; 55 57 } 58 59 /* call to opihi shell */ 60 int main (int argc, char **argv) { 61 int status; 62 status = opihi (argc, argv); 63 exit (status); 64 } -
trunk/Ohana/src/opihi/pantasks/server_threads.c
r7952 r7960 24 24 } 25 25 26 void CheckTasksThread ( ) {26 void CheckTasksThread (void *data) { 27 27 28 28 gprintInit (); // each thread needs to init the printing system … … 55 55 } 56 56 57 void CheckJobsThread ( ) {57 void CheckJobsThread (void *data) { 58 58 59 59 gprintInit (); // each thread needs to init the printing system … … 86 86 } 87 87 88 void CheckControllerThread ( ) {88 void CheckControllerThread (void *data) { 89 89 90 90 gprintInit (); // each thread needs to init the printing system … … 118 118 } 119 119 120 void CheckInputsThread ( ) {120 void CheckInputsThread (void *data) { 121 121 122 122 gprintInit (); // each thread needs to init the printing system -
trunk/Ohana/src/opihi/pantasks/status.c
r7952 r7960 14 14 gprint (GP_LOG, " Controller is stopped\n"); 15 15 } 16 if (CheckTasksGetState()) {17 gprint (GP_LOG, " Scheduler is running\n");18 } else {19 gprint (GP_LOG, " Scheduler is stopped\n");20 }21 if (CheckControllerGetState()) {22 gprint (GP_LOG, " Controller is running\n");23 } else {24 gprint (GP_LOG, " Controller is stopped\n");25 }26 16 ListTasks (FALSE); 27 17 ListJobs (); 28 18 return (TRUE); 29 19 } 30 -
trunk/Ohana/src/opihi/pantasks/task.c
r7917 r7960 96 96 case TASK_COMMAND: 97 97 case TASK_PERIODS: 98 status = command (input, &outline );98 status = command (input, &outline, TRUE); 99 99 if (outline != NULL) free (outline); 100 100 /* what to do if command is invalid? -
trunk/Ohana/src/opihi/pclient/pclient.c
r7917 r7960 53 53 } 54 54 55 /* call to opihi shell */ 56 int main (int argc, char **argv) { 57 int status; 58 status = opihi (argc, argv); 59 exit (status); 60 } -
trunk/Ohana/src/opihi/pcontrol/pcontrol.c
r7917 r7960 52 52 return; 53 53 } 54 55 /* call to opihi shell */ 56 int main (int argc, char **argv) { 57 int status; 58 status = opihi (argc, argv); 59 exit (status); 60 }
Note:
See TracChangeset
for help on using the changeset viewer.
