IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 14, 2005, 8:18:09 AM (21 years ago)
Author:
eugene
Message:

updating user commands

File:
1 edited

Legend:

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

    r4539 r4552  
    1 # include "pcontrol.h"
     1# include "scheduler.h"
    22
    3 int delete (int argc, char **argv) {
     3int delete_job (int argc, char **argv) {
    44
    55  Job *job;
     
    1313  /* use a string interp to convert JobIDs to ints ? */
    1414
    15   job = PullJob (JobID, PCONTROL_JOB_PENDING);
    16   if (job != NULL) goto found;
    17 
    18   job = PullJob (JobID, PCONTROL_JOB_CRASH);
    19   if (job != NULL) goto found;
    20 
    21   job = PullJob (JobID, PCONTROL_JOB_EXIT);
    22   if (job != NULL) goto found;
    23 
    24   fprintf (stderr, "job %s not PENDING, CRASH, EXIT\n", argv[1]);
    25   return (FALSE);
    26  
    27 found:
    28   {
    29     int j;
    30     fprintf (stderr, "deleting job  %s  %d  ", job[0].hostname, job[0].argc);
    31     for (j = 0; j < job[0].argc; j++) {
    32       fprintf (stderr, "%s ", job[0].argv[j]);
    33     }
    34     PrintID (stderr, job[0].JobID);
    35     fprintf (stderr, "\n");
    36   } 
    37   DelJob (job);
    38 
     15  fprintf (stderr, "this function is not yet implemented\n");
    3916  return (TRUE);
    4017}
Note: See TracChangeset for help on using the changeset viewer.