-
-
Notifications
You must be signed in to change notification settings - Fork 4
SSH.Execute
Andrew Lambert edited this page Nov 26, 2022
·
4 revisions
SSH.Execute
Protected Function Execute(Optional Session As SSH.Session, Command As String) As SSH.SSHStream
Name | Type | Comment |
---|---|---|
Session |
Session | Optional. If specified, an active SSH session to use. |
Command |
String | The command to execute. If Session is not specified then the command is in URL format. |
An object that implements the SSHStream interface, from which the command's output can be read.
This convenience method executes the Command on the remote server. Commands may be given in URL format if the Session parameter is not provided, e.g. ssh://192.168.0.1:2222/command%20arg1%20arg2
The Channel
returned from this method has its DataMode property set to ExtendedDataMode.Merge
.
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2018-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.