mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-05 07:59:23 +00:00
60643d379b
(Including all changes for FreeBSD - importing the original eBones distribution would be too complex at this stage, since I don't have access to Piero's CVS.) (If you want to include eBones in your system, don't forget to include MAKE_EBONES in /etc/make.conf.) (This stuff is now also suppable from braae.ru.ac.za.) Bones originally from MIT SIPB. Original port to FreeBSD 1.x by Piero Serini. Moved to FreeBSD 2.0 by Doug Rabson and Geoff Rehmet. Nice bug fixes from Doug Rabson.
153 lines
3.6 KiB
Groff
153 lines
3.6 KiB
Groff
.\" from: rsh.1,v 4.1 89/01/23 11:39:11 jtkohl Exp $
|
|
.\" $Id: rsh.1,v 1.2 1994/07/19 19:28:03 g89r4222 Exp $
|
|
.\"
|
|
.\" Copyright (c) 1983 The Regents of the University of California.
|
|
.\" All rights reserved.
|
|
.\"
|
|
.\" Redistribution and use in source and binary forms are permitted
|
|
.\" provided that the above copyright notice and this paragraph are
|
|
.\" duplicated in all such forms and that any documentation,
|
|
.\" advertising materials, and other materials related to such
|
|
.\" distribution and use acknowledge that the software was developed
|
|
.\" by the University of California, Berkeley. The name of the
|
|
.\" University may not be used to endorse or promote products derived
|
|
.\" from this software without specific prior written permission.
|
|
.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
|
|
.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
|
.\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
|
.\"
|
|
.\" @(#)rsh.1 6.2 (Berkeley) 9/20/88
|
|
.\"
|
|
.TH RSH 1 "Kerberos Version 4.0" "MIT Project Athena"
|
|
.UC 5
|
|
.SH NAME
|
|
rsh \- remote shell
|
|
.SH SYNOPSIS
|
|
.B rsh
|
|
host
|
|
[
|
|
.B \-l
|
|
username
|
|
] [
|
|
.B \-n
|
|
] [
|
|
.B \-d
|
|
] [
|
|
.B \-k
|
|
realm ] command
|
|
.br
|
|
host
|
|
[
|
|
.B \-l
|
|
username
|
|
] [
|
|
.B \-n
|
|
] [
|
|
.B \-d
|
|
] [
|
|
.B \-k
|
|
realm ] command
|
|
.SH DESCRIPTION
|
|
.I Rsh
|
|
connects to the specified
|
|
.I host,
|
|
and executes the specified \fIcommand\fR.
|
|
.I Rsh
|
|
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; \fIrsh\fP normally terminates when the remote command does.
|
|
.PP
|
|
The remote username used is the same as your local username,
|
|
unless you specify a different remote name with the
|
|
.B \-l
|
|
option.
|
|
Kerberos authentication is used, and authorization is determined as in
|
|
rlogin(1).
|
|
.PP
|
|
The
|
|
.B \-k
|
|
\fIrealm\fP option causes
|
|
.I rsh
|
|
to obtain tickets for the remote host in
|
|
.I realm
|
|
instead of the remote host's realm as determined by
|
|
.IR krb_realmofhost (3).
|
|
.PP
|
|
The
|
|
.B \-d
|
|
option turns on socket debugging (via \fIsetsockopt(2)\fR) on the TCP
|
|
sockets used for communication with the remote host.
|
|
.PP
|
|
The
|
|
.B \-n
|
|
option redirects input from the special device
|
|
.I /dev/null
|
|
(see the BUGS section below).
|
|
.PP
|
|
If you omit
|
|
.I command,
|
|
then instead of executing a single command, you will be logged in
|
|
on the remote host using
|
|
.IR rlogin (1).
|
|
.PP
|
|
Shell metacharacters which are not quoted are interpreted
|
|
on local machine, while quoted metacharacters are interpreted on
|
|
the remote machine.
|
|
Thus the command
|
|
.PP
|
|
\ \ \ rsh otherhost cat remotefile >> localfile
|
|
.PP
|
|
appends the remote file
|
|
.I remotefile
|
|
to the local file
|
|
.I localfile,
|
|
while
|
|
.PP
|
|
\ \ \ rsh otherhost cat remotefile ">>" otherremotefile
|
|
.PP
|
|
appends
|
|
.I remotefile
|
|
to
|
|
.I otherremotefile.
|
|
.PP
|
|
The host names for local machines are also commands in the directory
|
|
/usr/hosts; if you put this directory in your search path
|
|
then the
|
|
.B rsh
|
|
on the command line can be omitted.
|
|
.SH FILES
|
|
.ta 2i
|
|
/etc/hosts
|
|
.br
|
|
/usr/hosts/*
|
|
.DT
|
|
.SH SEE ALSO
|
|
rlogin(1), kerberos(3), krb_sendauth(3), krb_realmofhost(3)
|
|
.SH BUGS
|
|
If you are using
|
|
.IR csh (1)
|
|
and put a
|
|
.IR rsh (1)
|
|
in the background without redirecting its input
|
|
away from the terminal, it will block even if no reads
|
|
are posted by the remote command. If no input is desired
|
|
you should redirect the input of
|
|
.I rsh
|
|
to /dev/null using the
|
|
.B \-n
|
|
option.
|
|
.PP
|
|
You cannot run an interactive command
|
|
(like
|
|
.IR rogue (6)
|
|
or
|
|
.IR vi (1));
|
|
use
|
|
.IR rlogin (1).
|
|
.PP
|
|
Stop signals stop the local \fIrsh\fP process only; this is arguably
|
|
wrong, but currently hard to fix for reasons too complicated to
|
|
explain here.
|