Using HP-UX Internet Services (August 2003)
Distributing Files Using rdist
Starting rdist
Chapter 550
Starting rdist
After creating the distfile on the master host, you can start rdist
from the command line or from a cron file. You must run rdist as root
on the master host. Following are the syntaxes for starting rdist from
the command line:
• /usr/bin/rdist [-b] [-h] [-i] [-n] [-q] [-R] [-v] [-w]
[-y] [-d
var
=
value
] [-f
distfile
] [-m
host
] ... [
label
]
where,
-d
var
=
value
sets the value of the variable
var
to
value
.
value
can
be an empty string, a single name, or a list of names separated by
tabs and spaces, and enclosed within parentheses. The -d option is
used to define variable definitions in the distfile. However, if you
specify the -d option for a variable that is already defined in the
distfile, the -d option has no effect (because the distfile
overrides the -d option).
-f
distfile
specifies the file,
distfile
, used to update files and
directories. If you do not specify the distfile, rdist first looks in
the current working directory for the file distfile, and then the file
Distfile.
-m
host
limits the updates to
host
, which is one of the hosts
previously identified in the distfile. You can specify multiple -m
arguments.
label
performs only the command entries specified by
label
in the
distfile.
• /usr/bin/rdist [-b] [-h] [-i] [-n] [-q] [-R] [-v] [-w]
[-y] -c
pathname
... [
login
@]
host
[:
destpath
]
where,
-c
pathname
... [
login
@]
host
[:
destpath
] updates files in
pathname
on the remote host
host
(the -c arguments are interpreted
as a distfile).
login
specifies the user name used to perform the update.
destpath
specifies the path name of the installed file on the remote host.