IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13541


Ignore:
Timestamp:
May 30, 2007, 12:14:21 PM (19 years ago)
Author:
eugene
Message:

fix up pantasks server commands, added modules

Location:
trunk/Ohana/src/opihi/pantasks
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pantasks/init.c

    r12467 r13541  
    1717int stop            PROTO((int, char **));
    1818int halt            PROTO((int, char **));
     19int flush_jobs      PROTO((int, char **));
    1920int pulse           PROTO((int, char **));
    20 int showtask       PROTO((int, char **));
     21int showtask        PROTO((int, char **));
    2122int status_sys      PROTO((int, char **));
    2223int kill_job        PROTO((int, char **));
     
    2728
    2829static Command cmds[] = { 
     30  {"active",     task_active,   "set the active state of a task"},
     31  {"command",    task_command,  "define executed command for a task"},
    2932  {"controller", controller,    "controller commands"},
    30   {"task",       task,          "define a schedulable task"},
     33  {"delete",     delete_job,    "delete job"},
     34  {"halt",       halt,          "halt the scheduler (no job harvesting)"},
    3135  {"host",       task_host,     "define host machine for a task"},
     36  {"ipptool2book", ipptool2book, "convert queue with ipptool output to book"},
     37  {"kill",       kill_job,      "kill job"},
    3238  {"nmax",       task_nmax,     "define maximum number of jobs for a task"},
    3339  {"npending",   task_npending, "define maximum number of outstanding jobs for a task"},
    34   {"active",     task_active,   "set the active state of a task"},
    35   {"trange",     task_trange,   "define valid/invalid time periods for a task"},
    36   {"task.exit",  task_macros,   "define exit macros for a task"},
    37   {"task.exec",  task_macros,   "define pre-exec macro for a task"},
    38   {"command",    task_command,  "define executed command for a task"},
    3940  {"options",    task_options,  "define optional variables associated with the job task"},
    4041  {"periods",    task_periods,  "define time scales for a task"},
    41   {"stdout",     task_stdout,   "define a file for the job stdout dump"},
    42   {"stderr",     task_stderr,   "define a file for the job stderr dump"},
     42  {"pulse",      pulse,         "set the scheduler update period"},
    4343  {"run",        run,           "run the scheduler"},
    44   {"stop",       stop,          "stop the scheduler (continue job harvesting)"},
    45   {"halt",       halt,          "halt the scheduler (no job harvesting)"},
    46   {"pulse",      pulse,         "set the scheduler update period"},
     44  {"flush",      flush_jobs,    "flush all jobs from the queue"},
    4745  {"showtask",   showtask,      "list a task"},
    4846  {"status",     status_sys,    "get system or task status"},
    49   {"kill",       kill_job,      "kill job"},
    50   {"delete",     delete_job,    "delete job"},
     47  {"stderr",     task_stderr,   "define a file for the job stderr dump"},
     48  {"stdout",     task_stdout,   "define a file for the job stdout dump"},
     49  {"stop",       stop,          "stop the scheduler (continue job harvesting)"},
     50  {"task",       task,          "define a schedulable task"},
     51  {"task.exec",  task_macros,   "define pre-exec macro for a task"},
     52  {"task.exit",  task_macros,   "define exit macros for a task"},
     53  {"trange",     task_trange,   "define valid/invalid time periods for a task"},
     54  {"verbose",    verbose,       "set/toggle verbose mode"},
    5155  {"version",    version,       "show version information"},
    52   {"verbose",    verbose,       "set/toggle verbose mode"},
    53   {"ipptool2book", ipptool2book, "convert queue with ipptool output to book"},
    5456};
    5557
  • trunk/Ohana/src/opihi/pantasks/init_server.c

    r10997 r13541  
    55int task_host       PROTO((int, char **));
    66int task_nmax       PROTO((int, char **));
     7int task_npending   PROTO((int, char **));
     8int task_active     PROTO((int, char **));
    79int task_trange     PROTO((int, char **));
    810int task_macros     PROTO((int, char **));
     
    1012int task_options    PROTO((int, char **));
    1113int task_periods    PROTO((int, char **));
     14int task_stdout     PROTO((int, char **));
     15int task_stderr     PROTO((int, char **));
    1216int pulse           PROTO((int, char **));
     17int flush_jobs      PROTO((int, char **));
    1318int status_server   PROTO((int, char **));
     19int showtask        PROTO((int, char **));
    1420int kill_job        PROTO((int, char **));
    1521int delete_job      PROTO((int, char **));
     
    2026
    2127static Command cmds[] = { 
     28  {"active",     task_active,   "set the active state of a task"},
     29  {"command",    task_command,  "define executed command for a task"},
    2230  {"controller", controller,    "controller commands"},
    23   {"task",       task,          "define a schedulable task"},
     31  {"delete",     delete_job,    "delete job"},
    2432  {"host",       task_host,     "define host machine for a task"},
     33  {"ipptool2book", ipptool2book, "convert queue with ipptool output to book"},
     34  {"kill",       kill_job,      "kill job"},
    2535  {"nmax",       task_nmax,     "define maximum number of jobs for a task"},
    26   {"trange",     task_trange,   "define valid/invalid time periods for a task"},
    27   {"task.exit",  task_macros,   "define exit macros for a task"},
    28   {"task.exec",  task_macros,   "define pre-exec macro for a task"},
    29   {"command",    task_command,  "define executed command for a task"},
    3036  {"options",    task_options, "define optional variables associated with the job task"},
     37  {"npending",   task_npending, "define maximum number of outstanding jobs for a task"},
    3138  {"periods",    task_periods,  "define time scales for a task"},
    3239  {"pulse",      pulse,         "set the scheduler update period"},
     40  {"flush",      flush_jobs,    "flush all jobs from the queue"},
    3341  {"server",     server,        "server-specific commands"},
     42  {"showtask",   showtask,      "list a task"},
    3443  {"status",     status_server, "get system status"},
    35   {"kill",       kill_job,      "kill job"},
    36   {"delete",     delete_job,    "delete job"},
     44  {"stderr",     task_stderr,   "define a file for the job stderr dump"},
     45  {"stdout",     task_stdout,   "define a file for the job stdout dump"},
     46  {"task",       task,          "define a schedulable task"},
     47  {"task.exec",  task_macros,   "define pre-exec macro for a task"},
     48  {"task.exit",  task_macros,   "define exit macros for a task"},
     49  {"trange",     task_trange,   "define valid/invalid time periods for a task"},
     50  {"verbose",    verbose,       "set/toggle verbose mode"},
    3751  {"version",    version,       "show version information"},
    38   {"verbose",    verbose,       "set/toggle verbose mode"},
    39   {"ipptool2book", ipptool2book, "convert queue with ipptool output to book"},
    4052};
    4153
Note: See TracChangeset for help on using the changeset viewer.