Rexec prompts the user for a password and authenticates the given password on the
remote computer. If the authentication succeeds, the command is executed.
Rexec copies standard input to the remote command, standard output to its standard
output, and standard error 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
computer. 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 othercomputer cat remotefile >> localfile
The following command appends the remote file remotefile to the remote file otherremotefile:
rexec othercomputer cat remotefile ">>" otherremotefile
Using Interactive Commands
You cannot run most interactive commands. For example, vi or emacs cannot be run using rexec. Use telnet to run interactive commands.
More Information About Rexec