Changeset 8548 for trunk/Ohana/src/opihi/pantasks/controller.c
- Timestamp:
- Aug 23, 2006, 5:31:41 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pantasks/controller.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pantasks/controller.c
r7917 r8548 4 4 int controller_exit PROTO((int, char **)); 5 5 int controller_status PROTO((int, char **)); 6 int controller_run PROTO((int, char **)); 7 int controller_stop PROTO((int, char **)); 6 8 int controller_check PROTO((int, char **)); 7 9 int controller_output PROTO((int, char **)); … … 12 14 {"host", controller_host, "define host for controller"}, 13 15 {"check", controller_check, "check controller host/job"}, 16 {"run", controller_run, "start controller operation"}, 17 {"stop", controller_stop, "stop controller (no disconnect)"}, 14 18 {"status", controller_status, "check controller status"}, 15 19 {"output", controller_output, "print controller output"}, … … 19 23 int controller (int argc, char **argv) { 20 24 21 int status;25 int i, N, status; 22 26 CommandF *func; 23 27 … … 25 29 gprint (GP_ERR, "USAGE: controller (command) ... \n"); 26 30 return (FALSE); 31 } 32 33 if (!strcasecmp (argv[1], "help")) { 34 N = sizeof (controller_cmds) / sizeof (Command); 35 36 for (i = 0; i < N; i++) { 37 gprint (GP_LOG, "%-15s %s\n", controller_cmds[i].name, controller_cmds[i].help); 38 } 39 return (TRUE); 27 40 } 28 41
Note:
See TracChangeset
for help on using the changeset viewer.
