ISchedulerTask::StdErrFilePath property

Retrieves or sets the path to which the server redirects standard error.

This property is read/write.

Syntax

HRESULT put_StdErrFilePath(
  [in]  BSTR path
);

HRESULT get_StdErrFilePath(
  [out] BSTR *pPath
);

Property value

The full path to the file to which standard error is redirected.

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

You must specify a file to capture output from 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 you do not specify a file for stderr, you can access the Output task property to view the output written to stderr.

For parametric tasks (see the IsParametric property), the Scheduler replaces all occurrences of an asterisk (*) found in the file path with the instance value.

Examples

For an example, see Creating a Parametric Sweep Task.

Requirements

Product

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

Type library

Microsoft.Hpc.Scheduler.tlb

See also

ISchedulerTask

ISchedulerTask.Output

ISchedulerTask.StdInFilePath

ISchedulerTask.StdOutFilePath