TCP/IP Remote Utilities

Previous Topic Next Topic

Using Rsh

Rsh copies standard input to the remote command, standard output of the remote command to its standard output, and the standard error of the remote command to its standard error. Rsh terminates when the remote command does.

Using Redirection Symbols

Use quotation marks around redirection symbols to redirect onto the remote host. If quotation marks are not used, redirection occurs on the local computer. For example, the following command appends the remote file remotefile to the local file localfile:

Rsh otherhost cat remotefile >> localfile


The following command appends the remote file remotefile to the remote file otherremotefile:

Rsh otherhost cat remotefile ">>" otherremotefile


Using Rsh on a Windows 2000 Server Domain

If the user is logged on to a Microsoft® Windows® 2000 Server domain, the domain controller must be available to resolve the currently logged-on name, because the logged-on name is not cached on the local computer. Because the user name is required as part of the RSH protocol, the command fails if the user name cannot be obtained.

Rhosts File

The Rhosts file generally permits network access rights on UNIX computers. The Rhosts file lists computer names and associated logon names that have access to remote computers. When issuing rcp, rexec, or rsh commands to a remote computer with a properly configured Rhosts file, you do not need to provide logon and password information for the remote computer.

The Rhosts file is a text file in which each line is an entry. An entry consists of the local computer name, the local user name, and any comments about the entry. Entries are separated by a tab or space, and comments begin with a number sign (#), for example:

Computer5marie#This computer is in room 41A


The Rhosts file must be in the user's home directory on the remote computer. For more information about a remote computer's specific implementation of the Rhosts file, see the remote computer's documentation.

© 1985-2000 Microsoft Corporation. All rights reserved.