Freigeben über


ITask::put_Stdout method

Redirects standard output to the specified file.

Syntax

HRESULT put_Stdout(
  [in] BSTR Val
);

Parameters

  • Val [in]
    The path to the file to which standard output is redirected.

Return value

If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code.

Remarks

You must specify a file to capture output to stdout; otherwise, the output is lost. If the file exists, it is overwritten. Specify a separate file for each task. If you use the same file, the task could fail if the file is currently locked by another task. The path must exist on each node on which the task runs. If the path contains long file names, enclose the path in quotation marks.

The output file is ignored for tasks run as commands.

Requirements

Product

Compute Cluster Pack Client Utilities

Type library

Ccpapi.tlb

See also

ITask

ITask::get_Stdout

ITask::put_Stderr

ITask::put_Stdin