Using HP-UX Internet Services (August 2003)

Distributing Files Using rdist
Creating the distfile
Chapter 5 47
If the distfile does not contain the install command or if the
destpath
option is not used with the install command, the file name
on the master host is given to the remote host’s file. Parent directories in
a file’s path are created on a remote host if they do not exist. rdist does
not replace non-empty directories on a remote host. However, if the -R
option is specified with the install command, a non-empty directory is
removed on the remote host if the corresponding directory does not exist
on the master host.
For a detailed description of commands and their options, type
man 1 rdist at the HP-UX prompt.
The following file distribution commands use the variable definitions
discussed previously:
notify
user
[@
host
]
Sends a list of updated files and errors occurred to a specified
receiver. If you do not specify
host
, the remote host name is
the default value.
except
file_list
Updates all files in the source list except the files specified in
file_list
.
except_pat
pattern
Updates all files in the source list except the file names that
contain the pattern
pattern
. You must provide the escape
character backslash (\) for the characters backslash (\) and $.
special
[
file
]
command
Specifies commands that must be executed on the remote host
after each specified file is updated or installed. This option is
used to rebuild databases and configuration files after a
program is updated. If you do not specify the
file
,
command
is
executed for every updated file.
command
can contain multiple
commands, each separated by semicolons. The user’s home
directory on the remote host is the default working directory
for each command.
Table 5-1 The distfile Commands (Continued)
Command
Name
Description