version 1.24, 2007/02/26 16:17:10 |
version 1.25, 2007/02/26 16:39:23 |
|
|
option is present, the program looks first for |
option is present, the program looks first for |
.Pa distfile , |
.Pa distfile , |
then |
then |
.Pa Distfile |
.Pa Distfile , |
to use as the input. |
to use as the input. |
If no names are specified on the command line, |
If no names are specified on the command line, |
.Nm |
.Nm |
|
|
uses a remote shell command to access each target host. |
uses a remote shell command to access each target host. |
By default, |
By default, |
.Xr ssh 1 |
.Xr ssh 1 |
is used, unless overridden by the |
is used unless overridden by the |
.Fl P |
.Fl P |
option or the |
option or the |
.Ev RSH |
.Ev RSH |
environment variable. |
environment variable. |
If the target host is the string |
If the target host is the string |
.Em localhost |
.Dq localhost |
and the remote user name is the same as the local user name, |
and the remote user name is the same as the local user name, |
.Nm |
.Nm |
will run the command: |
will run the command: |
|
|
.Nm |
.Nm |
run will run the command: |
run will run the command: |
.Bd -literal -offset indent |
.Bd -literal -offset indent |
ssh host -l remuser rdistd -S |
ssh \*(Lthost\*(Gt -l \*(Ltlogin_name\*(Gt rdistd -S |
.Ed |
.Ed |
.Pp |
.Pp |
where |
.Ar host |
.Em host |
is the name of the target host; |
is the name of the target host, |
.Ar login_name |
.Em remuser |
is the name of the user to make the connection as. |
is the name of the user to make the connection as, and |
|
.Em rdistd |
|
is the rdist server command on the target host as shown below. |
|
.Pp |
.Pp |
On each target host |
On each target host |
.Nm |
.Nm |
will attempt to run the command |
will attempt to run the command: |
.Bd -literal -offset indent |
.Bd -literal -offset indent |
rdistd -S |
rdistd -S |
.Ed |
.Ed |
or |
.Pp |
.Bd -literal -compact -offset indent |
Or if the |
|
.Fl p |
|
option was specified, |
|
.Nm |
|
will attempt to run the command: |
|
.Bd -literal -offset indent |
\*(Ltrdistd path\*(Gt -S |
\*(Ltrdistd path\*(Gt -S |
.Ed |
.Ed |
.Pp |
.Pp |
if the |
|
.Fl p |
|
option was specified. |
|
If no |
If no |
.Fl p |
.Fl p |
option is included, or the |
option is specified, or |
.Aq Ar rdistd path |
.Aq Ar rdistd path |
is a simple filename, |
is a simple filename, |
.Xr rdistd 1 |
.Xr rdistd 1 |