Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ rsh(1C) — GL2 W2.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

rlogin(1C)

RSH(1C)  —  Silicon Graphics

NAME

rsh − remote shell

SYNOPSIS

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

DESCRIPTION

rsh connects your terminal to the specified host and executes the specified command.  rsh normally copies its standard input to the remote command, the standard output of the remote command to rsh’s standard output, and the standard error of the remote command to rsh’s standard error.  Interrupt, quit, and terminate signals are passed to the remote command.  rsh normally terminates when the remote command does.  It returns immediately to the local host if the −n option is used, without redirecting its standard input to the remote command. 

The remote username is your local username, unless a different remote name is specified with the −l option.  Usernames on the two systems must be equivalent (as specified by /etc/hosts.equiv or .rhosts); a password cannot be used here.  The −l option is equivalent to using a .rhosts file entry. 

The host.equiv file does not work with root. 

If command is specified, rsh executes it and returns to the local host.  If command is not specified, rlogin(1C) logs the user in on the remote host. 

Unquoted shell metacharacters are interpreted on the local machine; quoted metacharacters are interpreted on the remote machine.  Thus the command

rsh otherhost cat remotefile >> localfile

appends the remote file remotefile to the local file localfile, while

rsh otherhost cat remotefile ">>" otherremotefile

appends remotefile to otherremotefile. 

Host names are in the file /etc/hosts.  Each host has one unambiguous standard name (the first name given in the file) and may optionally have one or more nicknames. 

FILES

/etc/hostshostname to network address mapping
~/.rhosts

SEE ALSO

rlogin(1C)

BUGS

Interactive commands [such as rogue(6)] will not run correctly.  To use interactive commands, use rlogin(1C). 

Version 2.4  —  September 29, 2021

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