PowerTCP Telnet for .NET CF
Execute(String,String,String) Method
See Also  Send comments on this topic.
Dart.Telnet Namespace > Rsh Class > Execute Method : Execute(String,String,String) Method




username
The login name of the user as known to the server.
command
The command to execute.
clientUsername
Login name of the user on the client host.
Execute a command on the Rsh server.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub Execute( _
   ByVal username As String, _
   ByVal command As String, _
   ByVal clientUsername As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As Rsh
Dim username As String
Dim command As String
Dim clientUsername As String
 
instance.Execute(username, command, clientUsername)
C# 
public void Execute( 
   string username,
   string command,
   string clientUsername
)
Managed Extensions for C++ 
public: void Execute( 
   string* username,
   string* command,
   string* clientUsername
) 
C++/CLI 
public:
void Execute( 
   String^ username,
   String^ command,
   String^ clientUsername
) 

Parameters

username
The login name of the user as known to the server.
command
The command to execute.
clientUsername
Login name of the user on the client host.

Remarks

This method executes the command specified by command. A Read method should be used to get the results.

The username is the login name of the user as known on the server. The clientUsername may be used if the client username differs from the server username.

Set ServerPort to connect to a port other than 514.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.2
© 2010 Dart Communications. All Rights Reserved.