XCP(1C) — Silicon Graphics
NAME
xcp − remote file copy
SYNOPSIS
xcp [ −Lrv ] file1 file2
xcp [ −Lrv ] file ... directory
DESCRIPTION
xcp copies files between machines. File1 is copied to file2 or file is copied to directory/file.
Each file or directory argument is either a remote file name of the form rhost:path, or a local file name. ( If the file name contains a :, put a ./ before the file name to specify a file in the current directory. For example, to send the file x:, use the command: xcp ./x: remote:x:)
The login name of the user sending a file over the network must be recognized by the remote machine or rhost may take the form rhost.rname to use rname rather than the current login name on the remote host. xcp does not prompt for passwords; your current local login name must exist on rhost and allow remote command execution via xx(1C). If path is not a full path name, it is interpreted relative to your login directory on rhost. A path on a remote host may be quoted (using \, ", or ´) so that the metacharacters are interpreted remotely. xcp handles third party copies, where neither source nor target files are on the current machine.
If the argument −r is specified and any of the source files are directories, xcp copies each subtree rooted at that name; in this case the destination must be a directory.
The −v option causes the file name to be printed as each file is copied.
The −L option causes symbolic links to be followed. Normally symbolic links are transferred as such.
FILES
/bin/xx
SEE ALSO
BUGS
xcp doesn’t detect all cases where the target of a copy might be a file in cases where only a directory should be legal.
xcp is confused by any output generated by commands in a .login, .profile, or .cshrc file on the remote host.
When copying with −r, links within a subtree are not preserved.
Long file names (>950 bytes) may cause trouble.
Version 2.4 — May 08, 1986