[9] | 1 | .\" Copyright (c) 1983 Regents of the University of California.
|
---|
| 2 | .\" All rights reserved. The Berkeley software License Agreement
|
---|
| 3 | .\" specifies the terms and conditions for redistribution.
|
---|
| 4 | .\"
|
---|
| 5 | .\" @(#)rsh.1c 6.1 (Berkeley) 4/29/85
|
---|
| 6 | .\"
|
---|
| 7 | .TH RSH 1 "April 29, 1985"
|
---|
| 8 | .UC 5
|
---|
| 9 | .SH NAME
|
---|
| 10 | rsh \- remote shell
|
---|
| 11 | .SH SYNOPSIS
|
---|
| 12 | .B rsh
|
---|
| 13 | .RB [ \-n ]
|
---|
| 14 | .RB [ \-l
|
---|
| 15 | .IR username ]
|
---|
| 16 | .I host
|
---|
| 17 | .RI [ command ]
|
---|
| 18 | .br
|
---|
| 19 | .I host
|
---|
| 20 | .RB [ \-n ]
|
---|
| 21 | .RB [ \-l
|
---|
| 22 | .IR username ]
|
---|
| 23 | .RI [ command ]
|
---|
| 24 | .SH DESCRIPTION
|
---|
| 25 | .B Rsh
|
---|
| 26 | connects to the specified
|
---|
| 27 | .IR host ,
|
---|
| 28 | and executes the specified \fIcommand\fR.
|
---|
| 29 | .B Rsh
|
---|
| 30 | copies its standard input to the remote command, the standard
|
---|
| 31 | output of the remote command to its standard output, and the
|
---|
| 32 | standard error of the remote command to its standard error.
|
---|
| 33 | Interrupt, quit and terminate signals are propagated to the remote
|
---|
| 34 | command; \fBrsh\fP normally terminates when the remote command does.
|
---|
| 35 | .PP
|
---|
| 36 | The remote username used is the same as your local username,
|
---|
| 37 | unless you specify a different remote name with the
|
---|
| 38 | .B \-l
|
---|
| 39 | option.
|
---|
| 40 | This remote name must be equivalent (in the sense of
|
---|
| 41 | .BR rlogin (1))
|
---|
| 42 | to the originating account; no provision
|
---|
| 43 | is made for specifying a password with a command.
|
---|
| 44 | .PP
|
---|
| 45 | If you omit
|
---|
| 46 | .IR command ,
|
---|
| 47 | then instead of executing a single command, you will be logged in
|
---|
| 48 | on the remote host using
|
---|
| 49 | .BR rlogin (1).
|
---|
| 50 | .PP
|
---|
| 51 | Shell metacharacters which are not quoted are interpreted
|
---|
| 52 | on local machine, while quoted metacharacters are interpreted on
|
---|
| 53 | the remote machine.
|
---|
| 54 | Thus the command
|
---|
| 55 | .PP
|
---|
| 56 | .RS
|
---|
| 57 | rsh otherhost cat remotefile >> localfile
|
---|
| 58 | .RE
|
---|
| 59 | .PP
|
---|
| 60 | appends the remote file
|
---|
| 61 | .I remotefile
|
---|
| 62 | to the localfile
|
---|
| 63 | .IR localfile ,
|
---|
| 64 | while
|
---|
| 65 | .PP
|
---|
| 66 | .RS
|
---|
| 67 | rsh otherhost cat remotefile ">>" otherremotefile
|
---|
| 68 | .RE
|
---|
| 69 | .PP
|
---|
| 70 | appends
|
---|
| 71 | .I remotefile
|
---|
| 72 | to
|
---|
| 73 | .IR otherremotefile .
|
---|
| 74 | .SH OPTIONS
|
---|
| 75 | .TP
|
---|
| 76 | .BI \-l " username"
|
---|
| 77 | Specify the remote user name.
|
---|
| 78 | .TP
|
---|
| 79 | .B \-n
|
---|
| 80 | Connect standard input of the remote command to /dev/null. Do this if
|
---|
| 81 | .B rsh
|
---|
| 82 | should not inadvertently read from standard input.
|
---|
| 83 | .SH SEE ALSO
|
---|
| 84 | .BR rcp (1),
|
---|
| 85 | .BR rlogin (1),
|
---|
| 86 | .BR rhosts (5).
|
---|
| 87 | .SH BUGS
|
---|
| 88 | You cannot run an interactive command
|
---|
| 89 | (like
|
---|
| 90 | .BR rogue (6)
|
---|
| 91 | or
|
---|
| 92 | .BR vi (1));
|
---|
| 93 | use
|
---|
| 94 | .BR rlogin (1).
|
---|