Click or drag to resize

SshClientRunCommand Method

Creates and executes the command.

Namespace: Crestron.SimplSharp.Ssh
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public SshCommand RunCommand(
	string commandText
)

Parameters

commandText  String
The command text.

Return Value

SshCommand
Returns an instance of SshCommand with execution results.
Exceptions
ExceptionCondition
ArgumentExceptionCommandText property is empty.
SshExceptionInvalid Operation - An existing channel was used to execute this command.
InvalidOperationExceptionAsynchronous operation is already in progress.
SshConnectionExceptionClient is not connected.
ArgumentNullExceptioncommandText is null.
Remarks
This method internally uses asynchronous calls.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also