124 lines
2.8 KiB
HTML
124 lines
2.8 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>rsh(1)</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<H1>rsh(1)</H1>
|
|
<HR>
|
|
<PRE>
|
|
|
|
</PRE>
|
|
<H2>NAME</H2><PRE>
|
|
rsh - remote shell
|
|
|
|
|
|
</PRE>
|
|
<H2>SYNOPSIS</H2><PRE>
|
|
<STRONG>rsh</STRONG> [<STRONG>-n</STRONG>] [<STRONG>-l</STRONG> <EM>username</EM>] <EM>host</EM> [<EM>command</EM>]
|
|
<EM>host</EM> [<STRONG>-n</STRONG>] [<STRONG>-l</STRONG> <EM>username</EM>] [<EM>command</EM>]
|
|
|
|
|
|
</PRE>
|
|
<H2>DESCRIPTION</H2><PRE>
|
|
<STRONG>Rsh</STRONG> connects to the specified <EM>host</EM>, and executes the specified <EM>command</EM>.
|
|
<STRONG>Rsh</STRONG> 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. Interrupt, quit and terminate
|
|
signals are propagated to the remote command; <STRONG>rsh</STRONG> normally terminates
|
|
when the remote command does.
|
|
|
|
The remote username used is the same as your local username, unless you
|
|
specify a different remote name with the <STRONG>-l</STRONG> option. This remote name
|
|
must be equivalent (in the sense of <STRONG><A HREF="../man1/rlogin.1.html">rlogin(1)</A></STRONG>) to the originating
|
|
account; no provision is made for specifying a password with a command.
|
|
|
|
If you omit <EM>command</EM>, then instead of executing a single command, you will
|
|
be logged in on the remote host using <STRONG><A HREF="../man1/rlogin.1.html">rlogin(1)</A></STRONG>.
|
|
|
|
Shell metacharacters which are not quoted are interpreted on local
|
|
machine, while quoted metacharacters are interpreted on the remote
|
|
machine. Thus the command
|
|
|
|
rsh otherhost cat remotefile >> localfile
|
|
|
|
appends the remote file <EM>remotefile</EM> to the localfile <EM>localfile</EM>, while
|
|
|
|
rsh otherhost cat remotefile ">>" otherremotefile
|
|
|
|
appends <EM>remotefile</EM> to <EM>otherremotefile</EM>.
|
|
|
|
|
|
</PRE>
|
|
<H2>OPTIONS</H2><PRE>
|
|
|
|
<STRONG>-l</STRONG> <EM>username</EM>
|
|
Specify the remote user name.
|
|
|
|
<STRONG>-n</STRONG> Connect standard input of the remote command to /dev/null. Do this
|
|
if <STRONG>rsh</STRONG> should not inadvertently read from standard input.
|
|
|
|
|
|
</PRE>
|
|
<H2>SEE ALSO</H2><PRE>
|
|
<STRONG><A HREF="../man1/rcp.1.html">rcp(1)</A></STRONG>, <STRONG><A HREF="../man1/rlogin.1.html">rlogin(1)</A></STRONG>, <STRONG><A HREF="../man5/rhosts.5.html">rhosts(5)</A></STRONG>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
<H2>BUGS</H2><PRE>
|
|
You cannot run an interactive command (like <STRONG><A HREF="../man6/rogue.6.html">rogue(6)</A></STRONG> or <STRONG><A HREF="../man1/vi.1.html">vi(1)</A></STRONG>); use
|
|
<STRONG><A HREF="../man1/rlogin.1.html">rlogin(1)</A></STRONG>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
</BODY>
|
|
</HTML>
|