pdcp.1 (2012 03)
pdsh(1) pdsh-2.16 pdsh(1)
(hpux11.31)
character causes the target hosts to be read from stdin, one per line. The host list may contain host-
list expressions of the form ‘‘host[1-5,7]’’. For more information about the hostlist format, see the
HOSTLIST EXPRESSIONS section below.
-x host,host,...
Exclude the specified hosts. May be specified in conjunction with other target node list options such
as -a and -g (when available). Hostlists may also be specified to the -x option (see HOSTLIST
EXPRESSIONS secion below).
Standard pdcp Options
-h Output usage menu and quit. A list of available rcmd modules will be printed at the end of the
usage message.
-q List option values and the target nodelist and exit without action.
-b Disable ctrl-C status feature so that a single ctrl-C kills parallel copy. (Batch Mode)
-r Copy directories recursively.
-p Preserve modification time and modes.
-l user
This option may be used to copy files as another user, subject to authorization. For BSD rcmd, this
means the invoking user and system must be listed in the user´s .rhosts file (even for root).
-t seconds
Set the connect timeout. Default is 30 seconds.
-f number
Set the maximum number of simultaneous remote copies to number. The default is 64.
-R name
Set rcmd module to name. This option may also be set via the PDSH_RCMD_TYPE
environment
variable. A list of available rcmd modules may be obtained via either the -h or -L options.
-L List info on all loaded pdcp modules and quit.
-d Include more complete thread status when SIGINT is received, and display connect and command
time statistics on stderr when done.
-V Output pdcp version information, along with list of currently loaded modules, and exit.
HOSTLIST EXPRESSIONS
As noted in sections above, pdcp accepts ranges of hostnames in the general form: prefix[n-m,l-k,...],
where n < m and l < k, etc., as an alternative to explicit lists of hosts. This form should not be confused
with regular expression character classes (also denoted by ‘‘[]’’). For example, foo[19] does not represent
foo1 or foo9, but rather represents a degenerate range: foo19.
This range syntax is meant only as a convenience on clusters with a prefixNN naming convention and
specification of ranges should not be considered necessary -- the list foo1,foo9 could be specified as such,
or by the range foo[1,9].
Some examples of range usage follow:
Copy /etc/hosts to foo01,foo02,...,foo05
pdcp -w foo[01-05] /etc/hosts /etc
Copy /etc/hosts to foo7,foo9,foo10
pdcp -w foo[7,9-10] /etc/hosts /etc
Copy /etc/hosts to foo0,foo4,foo5
pdcp -w foo[0-5] -x foo[1-3] /etc/hosts /etc
As a reminder to the reader, some shells will interpret brackets ([ and ]) for pattern matching. Depend-
ing on your shell, it may be necessary to enclose ranged lists within quotes. For example, in tcsh, the
first example above should be executed as:
pdcp -w "foo[01-05]" /etc/hosts /etc
2 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: March 2012