PowerTCP Emulation for .NET CF
Rsh Class
Members  See Also  Send comments on this topic.
Dart.Emulation Namespace : Rsh Class




The Rsh component enables use of the remote shell protocol within any .NET application.

Object Model

Rsh ClassProxy ClassTcpSocketOption Class

Syntax

Visual Basic (Declaration) 
Public Class Rsh 
   Inherits Dart.Common.TcpBase
Visual Basic (Usage)Copy Code
Dim instance As Rsh
C# 
public class Rsh : Dart.Common.TcpBase 
Managed Extensions for C++ 
public __gc class Rsh : public Dart.Common.TcpBase 
C++/CLI 
public ref class Rsh : public Dart.Common.TcpBase 

Remarks

Use the Rsh component to execute a command on a remote host (typically a UNIX host). To use the Rsh component, call Connect to connect, call one of the Execute methods to execute the command, and then use one of the Read methods to read the results of the command.

Rexec and Rsh perform the same task using different authentication techniques. Rsh requires static information be added to .rhosts and/or hosts.equiv, whereas Rexec simply uses dynamic username/password information for authentication.

Using Rsh requires authorization for the local host running the application. To do this, add the appropriate entries to the hosts.equiv or .rhosts files located on the remote host. These files enable login from other machines and users. The hosts.equiv file is a system file containing names of remote hosts authorized to execute the remote protocol. If not authorized in this file, the remote host looks for the .rhosts file located in the user's account on the remote host. The .rhosts file contains lines of host names and login names paired together. Your local host with login name is authorized if found in this file.

Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         Dart.Common.ComponentBase
            Dart.Common.SocketBase
               Dart.Common.TcpBase
                  Dart.Emulation.Rsh

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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