Share via


IRemoteCommandEvents::OnCommandOutput method

Is called each time the command on a node generates a line of output or an error occurs.

Syntax

void OnCommandOutput(
  [in] VARIANT                Sender,
  [in] ICommandOutputEventArg *pArgs
);

Parameters

  • Sender [in]
    A variant that contains the Scheduler object.

  • pArgs [in]
    An ICommandOutputEventArg interface that contains the output string.

Return value

This method does not return a value.

Remarks

To get the job that contains the command, query the pdispVal member of Sender for the IScheduler interface. Then, query the pdispVal member of pArgs for the ITaskStateEventArg interface. Use the ITaskStateEventArg.JobId property to call the IScheduler::OpenJob method to get the job. You can then use the ITaskStateEventArg::TaskId property to call the ISchedulerJob::OpenTask method to get the task that contains the command.

The dispatch identifier for this method is 0x60020000.

Examples

For an example, see Implementing the Event Handlers for Command Events in C++.

Requirements

Product

HPC Pack 2008 R2 Client Utilities, HPC Pack 2008 Client Utilities

Type library

Microsoft.Hpc.Scheduler.tlb

See also

IRemoteCommandEvents

IRemoteCommandEvents::OnCommandRawOutput