IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 16, 2005, 6:01:28 AM (21 years ago)
Author:
eugene
Message:

added user scheduler/controller commands, fixed up I/F issues

File:
1 edited

Legend:

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

    r4539 r4573  
    77  IOBuffer buffer;
    88
    9   if (argc != 3) {
     9  if (argc != 2) {
    1010    fprintf (stderr, "USAGE: controller host (hostname)\n");
    1111    return (FALSE);
     
    1515  StartController ();
    1616
    17   sprintf (command, "host %s", argv[2]);
     17  sprintf (command, "host %s", argv[1]);
    1818  InitIOBuffer (&buffer, 0x100);
    1919  status = ControllerCommand (command, CONTROLLER_PROMPT, &buffer);
     
    3232    case CONTROLLER_GOOD:
    3333      fprintf (stderr, "controller command sent\n"); 
     34      fwrite (buffer.buffer, 1, buffer.Nbuffer, stderr);
     35      fprintf (stderr, "\n Nbytes received: %d\n", buffer.Nbuffer); 
    3436      return (TRUE);
    3537
Note: See TracChangeset for help on using the changeset viewer.