IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 23, 2005, 9:13:00 PM (21 years ago)
Author:
eugene
Message:

added valid time ranges and elements of Njobs, status

File:
1 edited

Legend:

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

    r4451 r4602  
    22# define prompt "> "
    33
    4 enum {TASK_NONE, TASK_EMPTY, TASK_COMMENT, TASK_END, TASK_HOST, TASK_COMMAND, TASK_PERIODS, TASK_EXIT, TASK_EXEC};
     4enum {TASK_NONE, TASK_EMPTY, TASK_COMMENT, TASK_NMAX, TASK_TRANGE, TASK_END, TASK_HOST, TASK_COMMAND, TASK_PERIODS, TASK_EXIT, TASK_EXEC};
    55
    66int task (int argc, char **argv) {
     
    6868
    6969      case TASK_END:
     70        /* I need to add in a test here to see if all task elements
     71           have been defined.  delete the task if not */
    7072        free (input);
    7173        return (TRUE);
    7274        break;
    7375
     76      case TASK_TRANGE:
     77      case TASK_NMAX:
    7478      case TASK_HOST:
    7579      case TASK_EXIT:
     
    104108  if (!strcasecmp (command, "END"))       hash = TASK_END;
    105109  if (!strcasecmp (command, "HOST"))      hash = TASK_HOST;
     110  if (!strcasecmp (command, "NMAX"))      hash = TASK_NMAX;
     111  if (!strcasecmp (command, "TRANGE"))    hash = TASK_TRANGE;
    106112  if (!strcasecmp (command, "COMMAND"))   hash = TASK_COMMAND;
    107113  if (!strcasecmp (command, "PERIODS"))   hash = TASK_PERIODS;
Note: See TracChangeset for help on using the changeset viewer.