Skip to content

SSH.Channel.ProcessStart

Andrew Lambert edited this page Nov 26, 2022 · 6 revisions

SSH.Channel.ProcessStart

Method Signature

 Function ProcessStart(Request As String, Message As String) As Boolean

Parameters

Name Type Comment
Request String The type of request.
Message String The request.

Return value

Returns True if the remote process was started.

Remarks

Runs the command, executable, or subsystem indicated by the Request parameter. Defined requests are "exec", "shell", or "subsystem". The Message parameter contains request-specific data to pass to the process. Once the process is started you can read/write from its StdIn/Out/Err with the Read and Write methods.

If you need to wait for the process to exit so that you can read its exit code refer to the WaitClose method.

See also

Clone this wiki locally