UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: rshChapter 2
Unix Commands
Next: Reference: sact
 

rsh

rsh [options] host [command]

A BSD-derived command to invoke a remote shell. This command is often found in /usr/ucb and should not be confused with rsh, the restricted shell. On Solaris, it is in /usr/bin. rsh connects to host and executes command. If command is not specified, rsh allows you to rlogin to host. If shell metacharacters need to be interpreted on the remote machine, enclose them in quotes. This command is sometimes called remsh. See also ssh.

Options

-l user

Connect to host with a login name of user.

-n

Divert input to /dev/null. Sometimes useful when piping rsh to a command that reads standard input but that might terminate before rsh.


Previous: Reference: rshUNIX in a Nutshell: System V EditionNext: Reference: sact
Reference: rshBook IndexReference: sact

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System