Using HP-UX Internet Services (February 2007)

Table 5-2 rdist Command-Line Options
DescriptionOption Name
Performs a binary comparison and updates files if they differ. Without this option,
rdist updates files only if the size or modification time differs.
-b
Follows 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.
-h
Ignores unresolved links. Without this option, rdist tries to maintain the link
structure of the files being copied and sends out warnings if any link is not found.
-i
Checks whether the mode, ownership, and group of updated files on the remote
host are the same as the master copy and updates the files if they differ. This is
done in addition to any other comparison that may be in effect.
-M
Prints rdist commands on the standard output on the master host without
executing them. This option is useful for debugging a distfile.
-n
Suppresses printing of files that are modified to the standard output on the master
host.
-q
Removes files in the remote host’s directory that do not exist on the master directory.
-R
Displays the old files on the remote host but does not update any files or send any
mail.
-v
Appends the full path name (including directory subtree) to a destination directory
name.
-w
Does not update files on the remote host that are newer than the master copy.
-y
Example Output on the Master Host
Following is the output displayed on the standard output on the master host, when
rdist is started without command-line options:
% /usr/bin/rdist
updating host lassie
installing: myprog.c
special "cc"
notify @lassie (bentley@tbear)
updating host benji
installing: myprog.c
special "cc"
notify @benji (bentley@tbear)
An example distfile is as follows:
HOSTS = (lassie benji )
FILES = ( myprog.c )
${FILES} -> ${HOSTS}
32 Distributing Files Using rdist