HP-UX SNAplus2 R7 APPC Application Suite User's Guide

ACOPY
Using ACOPY
3 ACOPY
APPC Copy (
ACOPY) is an application that enables you to send or receive a le between two computers (
ACOPY
does not support multiple le transfer). For a simple le transfer,
ACOPY is quicker and easier to use than the
transfer function included with
AFTP.
ACOPY uses the following transaction programs:
ACOPY, which runs on the source computer
AFTPD (ACOPY
uses the same provider executable le as
AFTP; for more information about using the provider
program, see Section 2.2.1,
Selecting a User ID).
3.1 ACOPY Conguration
ACOPY uses
AFTPD as its provider program, and it uses the same initialization and conguration les as
AFTP.For
more information about conguration, see Section 2.1, AFTP Conguration.
3.2 Using ACOPY
Use the following command syntax to invoke
ACOPY:
acopy [Options] FromFile ToFile
One le (either the FromFile or the ToFile) resides on the local machine, and the other le resides on the remote
machine:
The order in which you specify the les determines the direction of the copy (the rst named le is copied to
the second named le).
Specify the local le as lename.
Specify the remote le as destination name:lename. (For more information about specifying a destination
name, see Section 1.2.2, Conguring Your System.)
You use the same command to send and receive les. If the rst named le is on the local node,
ACOPY sends it to
the remote node. If the rst named le is on the remote node,
ACOPY receives the le on the local node. Be sure
that the parameter that identies the remote le includes an identier for the remote system.
For example, to send a local le named
name1.c to a remote system named CPINET.LUNAME and save it as
lename name2.c, enter the following:
acopy name1.c CPINET.LUNAME:name2.c
In this example, CPINET.LUNAME (an identier for the remote system) consists of an LUNAME on the CPINET
network. The colon (:) following the LU name separates the remote system identier from the le name. The
identier for the remote system can be a fully qualied partner LU name (as in the example), a CPI-C symbolic
destination name,oranalias stored in the APPC Name Server (see Section 1.2.2, Conguring Your System).
Enter the following command to receive the same le from the same remote system:
acopy CPINET.LUNAME:name2.c name1.c
To limit access to ACOPY by unauthorized users, you can congure conversation-level and resource security for the
copy of the provider program (
AFTPD) that resides on your system (refer to the HP-UX SNAplus2 Administration
25