IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 4, 2005, 5:35:47 PM (21 years ago)
Author:
eugene
Message:

substantial dev work on scheduler/pcontrol/pclient

File:
1 edited

Legend:

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

    r2598 r4450  
    44int task_host (int argc, char **argv) {
    55
     6  int N, RequiredHost;
    67  Task *task;
    78  char *taskname;
    89
     10  RequiredHost = FALSE;
     11  if (N = get_argument (argc, argv, "-required")) {
     12    remove_argument (N, &argc, argv);
     13    RequiredHost = TRUE;
     14  }
     15
    916  if (argc != 2) {
    10     fprintf (stderr, "USAGE: host <name>\n");
    11     fprintf (stderr, "  (define host machine for this task (or 'none'))\n");
     17    fprintf (stderr, "USAGE: host <name> [-required]\n");
     18    fprintf (stderr, "  define host machine for this task\n");
     19    fprintf (stderr, "  -required flags indicates controller must use this host\n");
     20    fprintf (stderr, "  value of 'local' for host indicates process not using controller\n");
     21    fprintf (stderr, "  value of 'none' for host indicates controller may assign at will\n");
    1222    return (FALSE);
    1323  }
     
    2333    return (FALSE);
    2434  }
     35  task[0].host_required = RequiredHost;
    2536
    2637  if (task[0].host != NULL) free (task[0].host);
    2738  task[0].host = NULL;
    2839
    29   if (!strcasecmp (argv[1], "NONE")) return (TRUE);
     40  if (!strcasecmp (argv[1], "LOCAL")) return (TRUE);
    3041
    3142  task[0].host = strcreate (argv[1]);
Note: See TracChangeset for help on using the changeset viewer.