Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

rlogin(1C)

RSH(1C)

NAME

rsh − remote Shell

USAGE

rsh host [ −l username ] [ −n ] command

DESCRIPTION

Rsh connects to the specified host, and executes the specified command.  Rsh copies its standard input to the remote command, the standard output of the remote command to its standard output, and the standard error of the remote command to its standard error.  Rsh propagates interrupt, quit, and terminate signals to the remote command, and normally terminates when the remote command does. 

If you omit command, rsh logs you in on the remote host using rlogin(1C). 

The local machine interprets Shell metacharacters that are not quoted; the remote machine interprets those that are quoted.  The /etc/hosts file provides a list of host names.  Each host has one standard name (the first name given in the file), which is rather long and unambiguous, and optionally one or more nicknames.  The host names for local machines are also commands in the directory /usr/hosts.  If you put this directory in your search path, then the rsh can be omitted. 

OPTIONS

−l username
Specify a remote username different from the local username (by default, they will both be the same).  This remote name must be equivalent, in the sense of rlogin(1C), to the originating account since no provision is made for specifying a password with a command. 

−n Redirect the input of rsh to /dev/null.

EXAMPLES

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

rsh otherhost cat remotefile >> localfile

On the other hand, the command below appends remotefile to otherremotefile:

rsh otherhost cat remotefile ">>" otherremotefile

CAUTIONS

If you are using csh(1) and put a rsh in the background without redirecting its input away from the terminal, the rsh blocks even if no reads are posted by the remote command.  If you desire no input, redirect the input of rsh to /dev/null using the −n option. 

You cannot run an interactive command such as vi(1) from the remote Shell.  Use rlogin(1C) instead. 

Stop signals interrupt the local rsh process only. 

NOTES TO DOMAIN/IX USERS

For a node to accept incoming talk commands, it must be correctly configured to run DOMAIN/IX TCP/IP.  See System Administration for DOMAIN/IX bsd4.2 for information on configuring TCP/IP. 

FILES

/etc/hosts
/usr/hosts/*

RELATED INFORMATION

rlogin(1C). 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026