ISchedulerTask::Output property

Retrieves the output from the command.

This property is read-only.

Syntax

HRESULT get_Output(
  [out] BSTR *pOutput
);

Property value

The command output.

Error codes

If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code. To get a description of the error, access the ErrorMessage task property.

Remarks

The string includes the output from standard out and standard error. Only the first 4 kilobytes of the output are available. If you expect more than 4 kilobytes of output, set the StdErrFilePath and StdOutFilePath task properties. If you specify paths for both stderr and stdout, this property will be empty.

Examples

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

Requirements

Product

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

Type library

Microsoft.Hpc.Scheduler.tlb

See also

ISchedulerTask

ISchedulerTask.StdErrFilePath

ISchedulerTask.StdOutFilePath