IScheduler.CreateCommand Method (String, ICommandInfo, IStringCollection)

Creates a command to execute.


Namespace: Microsoft.Hpc.Scheduler
Assembly: Microsoft.Hpc.Scheduler (in Microsoft.Hpc.Scheduler.dll)

'Usage
Dim instance As IScheduler
Dim commandLine As String
Dim info As ICommandInfo
Dim nodes As IStringCollection
Dim returnValue As IRemoteCommand

returnValue = instance.CreateCommand(commandLine, info, nodes)

IRemoteCommand CreateCommand (
	string commandLine,
	ICommandInfo info,
	IStringCollection nodes
)
IRemoteCommand CreateCommand (
	String commandLine, 
	ICommandInfo info, 
	IStringCollection nodes
)
function CreateCommand (
	commandLine : String, 
	info : ICommandInfo, 
	nodes : IStringCollection
) : IRemoteCommand

Parameters

commandLine

The command to execute. The command is limited to 480 characters.

info

An ICommandInfo interface that provides additional property values used by the command. If the command does not use the additional property values, set to null.

nodes

An IStringCollection interface that identifies the nodes on which the command will run. To run the command on all nodes, set to null.

Return Value

An IRemoteCommand interface that defines the command to run.

For an example, see Executing Commands.

To capture the output from the command, you must subscribe to the IRemoteCommand.OnCommandOutput or OnCommandRawOutput event.

To run a command, the user must run the calling application as an administrator.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP, Windows Vista, Windows 7, Windows 8, Windows Server 2003, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012

Target Platforms

Windows XP, Windows Vista, Windows 7, Windows 8, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, with HPC Pack Client Utilities




Build Date:

2013-04-22
Show: