IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 19, 2008, 12:28:34 PM (18 years ago)
Author:
eugene
Message:

adding thread options to host and job

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pcontrol/StartJob.c

    r17477 r19124  
    1414
    1515  /* construct command line : job arg0 arg1 ... argN\n */
     16  // arguments of the form @MAX_THREADS@ are replaced here
    1617  Nline = 10 + job[0].argc;
    1718  for (i = 0; i < job[0].argc; i++) {
     
    2324  for (i = 0; i < job[0].argc; i++) {
    2425    strcat (line, " ");
     26    if (!strcmp (job[0].argv[i], "@MAX_THREADS@")) {
     27      char threads[10];
     28      snprintf (threads, 10, "%5d", host[0].max_threads);
     29      strcat (line, threads);
     30      continue;
     31    }
    2532    strcat (line, job[0].argv[i]);
    2633  }
     34
     35  fprintf (stderr, "command: %s\n", line);
    2736
    2837  status = PclientCommand (host, line, PCLIENT_PROMPT, PCONTROL_RESP_START_JOB);
Note: See TracChangeset for help on using the changeset viewer.