Using HP-UX Internet Services (February 2007)

directories on that host. Otherwise, the user name on the master host is used to
update the remote host.
The second entry defines the variable FILES to represent the files and directories
to be updated on the remote hosts. The shell meta characters {, }, and * in the
second line of this entry are used in the shorthand form that represent the files
/usr/include/*.h, /usr/include/stand/*.h, /usr/include/sys/*.h,
/usr/include/vax*/*.h and so on. The * character is used as a wildcard. You
can use commands, such as cat, within single backquotes (`) in the variable list.
The last entry defines the variable EXLIB to represent the files that must not be
updated on the remote hosts.
The following sections provide examples on how the variables are used in the distfile
command entries.
File Distribution Commands
The distfile command entries that distribute files to a remote host are specified in
the following format:
[label:] source_list -> destination_list command_list ;
where,
DescriptionCommand Entry
Groups the command entries and is an optional distfile command
entry. You can use labels to perform a partial update. Normally,
rdist updates all the files and directories listed in a distfile.
You can invoke rdist with a specific label; in this case, and rdist
executes only the entries under the specified label.
label:
Specifies the directories or files on the master host that must be used
as the master copy for distributing to the remote hosts.
source_list
Specifies the list of remote hosts to which source_list must be
distributed
destination_list
The following names are allowed for this command entry:
Single name (for example, matisse).
Variable defined previously in the distfile. Variables to be
expanded begin with $, followed by the variable name in braces
(for example, ${HOSTS}).
List of names, separated by white space and enclosed in
parentheses (for example, ( /usr/lib /usr/bin /usr/ucb
)).
source_list and
destination_list
Specifies a list of commands to be performed. Table 5-1 contains the
different commands that can be used in the command_list. Each
command must end with a semicolon (;).
command_list
28 Distributing Files Using rdist