source: trunk/minix/man/man1/rsh.1@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 2.0 KB
Line 
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
10rsh \- 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
26connects to the specified
27.IR host ,
28and executes the specified \fIcommand\fR.
29.B Rsh
30copies its standard input to the remote command, the standard
31output of the remote command to its standard output, and the
32standard error of the remote command to its standard error.
33Interrupt, quit and terminate signals are propagated to the remote
34command; \fBrsh\fP normally terminates when the remote command does.
35.PP
36The remote username used is the same as your local username,
37unless you specify a different remote name with the
38.B \-l
39option.
40This remote name must be equivalent (in the sense of
41.BR rlogin (1))
42to the originating account; no provision
43is made for specifying a password with a command.
44.PP
45If you omit
46.IR command ,
47then instead of executing a single command, you will be logged in
48on the remote host using
49.BR rlogin (1).
50.PP
51Shell metacharacters which are not quoted are interpreted
52on local machine, while quoted metacharacters are interpreted on
53the remote machine.
54Thus the command
55.PP
56.RS
57rsh otherhost cat remotefile >> localfile
58.RE
59.PP
60appends the remote file
61.I remotefile
62to the localfile
63.IR localfile ,
64while
65.PP
66.RS
67rsh otherhost cat remotefile ">>" otherremotefile
68.RE
69.PP
70appends
71.I remotefile
72to
73.IR otherremotefile .
74.SH OPTIONS
75.TP
76.BI \-l " username"
77Specify the remote user name.
78.TP
79.B \-n
80Connect standard input of the remote command to /dev/null. Do this if
81.B rsh
82should 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
88You cannot run an interactive command
89(like
90.BR rogue (6)
91or
92.BR vi (1));
93use
94.BR rlogin (1).
Note: See TracBrowser for help on using the repository browser.