Share via


ITask::put_Stderr method

Redirects standard error to the specified file.

Syntax

HRESULT put_Stderr(
  [in] BSTR Val
);

Parameters

  • Val [in]
    The path to the file to which standard error 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 stderr; 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 error file is ignored for tasks run as commands.

Requirements

Product

Compute Cluster Pack Client Utilities

Type library

Ccpapi.tlb

See also

ITask

ITask::get_Stderr

ITask::put_Stdin

ITask::put_Stdout