Skip to content

SSH.Channel.Execute

Andrew Lambert edited this page Sep 8, 2023 · 8 revisions

SSH.Channel.Execute

Method Signatures

 Function Execute(Command As String) As Boolean

Parameters

Name Type Comment
Command String A command line (without line endings).

Return value

Returns True if the command was executed. Check Channel.LastError if this method returns False.

Remarks

Execute a program on the server and attach its stdin, stdout, and stderr streams to this channel. This is equivalent to calling ProcessStart("exec", Command).

See also

Clone this wiki locally