TCP/IP Remote Utilities

Previous Topic Next Topic

Using Rexec

Rexec prompts the user for a password and authenticates the password on the remote host. If the authentication succeeds, the command is executed.

Rexec copies standard input to the remote command, standard output of the remote command to its standard output, and standard error of the remote command to its standard error. Interrupt, quit, and terminate signals are propagated to the remote command. Rexec normally 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:

Rexec otherhost cat remotefile >> localfile


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

Rexec otherhost cat remotefile ">>" otherremotefile


Using Interactive Commands

You cannot run most interactive commands using Rexec. For example, vi and emacs cannot be run using Rexec. Use telnet to run interactive commands.

© 1985-2000 Microsoft Corporation. All rights reserved.