PowerTCP SSH and SFTP for .NET
Execute(String) Method




Command to execute.
Executes a command on the server.
Syntax
'Declaration
 
Public Overloads Function Execute( _
   ByVal command As String _
) As Data
'Usage
 
Dim instance As Ssh
Dim command As String
Dim value As Data
 
value = instance.Execute(command)
public Data Execute( 
   string command
)
public: Data* Execute( 
   string* command
) 
public:
Data^ Execute( 
   String^ command
) 

Parameters

command
Command to execute.

Return Value

A Data object containing the response from the server.
Remarks
This method is typically used for non-interactive applications and is threadsafe (commands may be executed concurrently on multiple threads). If Ssh.ThreadingModel is ThreadingModel.ApartmentAsync, this method immediately returns a null value after starting a worker thread that executes the operation asynchronously. The Data event is raised containing the result upon completion, or the Error event is raised if an exception is thrown.
See Also

Reference

Ssh Class
Ssh Members
Overload List


PowerTCP SSH and SFTP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic