Using HP-UX Internet Services (February 2007)

Table 5-1 The distfile Commands
DescriptionCommand Name
Copies source files or directories to each host in the destination list. You can specify
any of the following options:
-b
Performs a binary comparison of the file and updates them if they
differ. Without this option, rdist updates files only if the size or
modification time differs.
-h
Allows symbolic links on the master host and copies the files that
the link points to. Without this option, rdist copies the name of a
symbolic link.
-i Ignores unresolved links. Without this option, rdist tries to
maintain the link structure of the files copied and sends warnings
if any link is not found.
-R
Removes the files in the remote host’s directory that do not exist in
the corresponding directory on the master host.
-v
Displays the old files on the remote host but does not update any
files or send any mail.
-w
Appends the full path name (including directory subtree) to a
destination directory name. For example, if the file /dira/filea
is copied to the directory dirb, the resultant file is
/dirb/dira/filea. Without this option, the preceding copy
operation results in the file /dirb/filea.
-y
Does not update files on the remote host that are newer than the
master copy.
destpath
Installs the file on the remote host as the specified path name.
install
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.
notify
user[@host]
Updates all files in the source list except the files specified in file_list.except
file_list
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 $.
except_pat
pattern
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 users home directory on the remote
host is the default working directory for each command.
special [file]
command
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
Creating the distfile 29