Rexec
Updated: January 21, 2005
Note
- You cannot connect to computers running the Windows Server 2003 family, Windows XP and Windows 2000 operating systems by using the rexec command because Windows operating systems do not provide the Rexec service.
Syntax
Parameters
Remarks
- Standard operation
The rexec command prompts the user for a password and authenticates the given password on the remote computer. If the authentication succeeds, the command is run.
The rexec command 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. The rexec normally quits when the remote command quits.
- Using Redirection symbols
for redirection to occur on the remote computer, enclose redirection symbols in quotation marks (for example, ">>"). If you do not use quotation marks, 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 by using rexec. You can, however, use telnet instead.
- This command is available only if the Internet Protocol (TCP/IP) protocol is installed as a component in the properties of a network adapter in Network Connections.
Examples
rexec vax1 -l admin1 telcon
Formatting legend
Format | Meaning |
Italic | Information that the user must supply |
Bold | Elements that the user must type exactly as shown |
Ellipsis (...) | Parameter that can be repeated several times in a command line |
Between brackets ([]) | Optional items |
Between braces ({}); choices separated by pipe (|). Example: {even|odd} | Set of choices from which the user must choose only one |
Courier font | Code or program output |