EldoS
Navigation
Web site
Support
Table Of Contents

Filter: C#  VB.NET  Pascal  ActiveX  DLL 


TElSimpleSSHClient.ExecuteCommand

TElSimpleSSHClient     See also    


 

This method sends command to the server.

 
 

Declaration

[C#]
    byte[] ExecuteCommand(string Cmd);
    byte[] ExecuteCommand(string Cmd, bool RedirectStdErr);
    byte[] ExecuteCommand(string Cmd, ref byte[] StdErrData);

[VB.NET]
    Function ExecuteCommand(ByVal Cmd As String) As Byte()
    Function ExecuteCommand(ByVal Cmd As String, ByVal RedirectStdErr As Boolean) As Byte()
    Function ExecuteCommand(ByVal Cmd As String, ByRef StdErrData As Byte()) As Byte()

[Pascal]
    function ExecuteCommand(const Cmd: string): BufferType;
    function ExecuteCommand(const Cmd: string; RedirectStdErr: boolean): BufferType;
    function ExecuteCommand(const Cmd: string; var StdErrData As Byte()): BufferType;

[VB6]
    not implemented;

[ActiveX]
    not implemented;

[DLL]
    not implemented;
 
 

Parameters

  • Cmd - command to be executed
  • RedirectStdErr - specifies, whether to redirect STDERR channel to output data
  • StdErrData - buffer for data from STDERR channel
 
 

Return value

    Returns server response.

 
 

Description

    This is a high-level method that connects to server, executes command and gets the entire response. Use this method to execute a simple command which does not require client-server interaction.
    Please note, that you should not call Open/SendData/ReceiveData/Close methods of the component if ExecuteCommand is used, as the method performs all the necessary calls internally.

 
 

See also:     Open     SendData     ReceiveData     Close    

 
Contact Us | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2012, EldoS Corporation