ClientSessionChannel - ExecRequest

[C]

__cdecl FlowSshC_ClientSessionChannel_ExecRequest(
  FlowSshC_ClientSessionChannel* channel,
  wchar_t const* command,
  FlowSshC_ProgressHandler handler,
  void* handlerData);

[C++]

[ClientSessionChannel] void ExecRequest(
  wchar_t const* command,
  RefPtr<ProgressHandler> const& progress);

[C#]

[ClientSessionChannel] public void ExecRequest(
  string command,
  ProgressHandler progress);

Parameters

  • [C] channel: FlowSshC_ClientSessionChannel pointer.
  • [C] handler: A ProgressHandler function to be used with the request. Optional.
  • [C] handlerData: An application-defined value to be passed to the handler. Optional.
     
  • command: The remote command/application to execute.
  • [C++/.NET] progress: A ProgressHandler object to be used with the request. Optional.

Remarks

Starts a command or application on the remote server. After you open and initialize a session-channel you call either:

  • ExecRequest to execute a command or application remotely, or
  • ShellRequest to request an interactive shell.