NET SFTP Library
ExecuteShellCommand Method






KellermanSoftware.NetSFtpLibrary Namespace > SFTP Class : ExecuteShellCommand Method
The command to execute
Timeout, msec
Execute a shell command on an SSH Server
Syntax
'Declaration
 
Public Function ExecuteShellCommand( _
   ByVal request As System.String, _
   Optional ByVal timeout As System.Integer _
) As System.String
'Usage
 
Dim instance As SFTP
Dim request As System.String
Dim timeout As System.Integer
Dim value As System.String
 
value = instance.ExecuteShellCommand(request, timeout)
public System.string ExecuteShellCommand( 
   System.string request,
   System.int timeout
)
public function ExecuteShellCommand( 
    request: System.String;
    timeout: System.Integer
): System.String; 
public function ExecuteShellCommand( 
   request : System.String,
   timeout : System.int
) : System.String;
public: System.string* ExecuteShellCommand( 
   System.string* request,
   System.int timeout
) 
public:
System.String^ ExecuteShellCommand( 
   System.String^ request,
   System.int timeout
) 

Parameters

request
The command to execute
timeout
Timeout, msec

Return Value

Response
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

SFTP Class
SFTP Members