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 file between two computers (
ACOPY
does not support multiple file transfer). For a simple file 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 file as
AFTP; for more information about using the provider
program, see Section 2.2.1,
Selecting a User ID).
3.1 ACOPY Configuration
ACOPY uses
AFTPD as its provider program, and it uses the same initialization and configuration files as
AFTP.For
more information about configuration, see Section 2.1, AFTP Configuration.
3.2 Using ACOPY
Use the following command syntax to invoke
ACOPY:
acopy [Options] FromFile ToFile
One file (either the FromFile or the ToFile) resides on the local machine, and the other file resides on the remote
machine:
• The order in which you specify the files determines the direction of the copy (the first named file is copied to
the second named file).
• Specify the local file as filename.
• Specify the remote file as destination name:filename. (For more information about specifying a destination
name, see Section 1.2.2, Configuring Your System.)
You use the same command to send and receive files. If the first named file is on the local node,
ACOPY sends it to
the remote node. If the first named file is on the remote node,
ACOPY receives the file on the local node. Be sure
that the parameter that identifies the remote file includes an identifier for the remote system.
For example, to send a local file named
name1.c to a remote system named CPINET.LUNAME and save it as
filename name2.c, enter the following:
acopy name1.c CPINET.LUNAME:name2.c
In this example, CPINET.LUNAME (an identifier for the remote system) consists of an LUNAME on the CPINET
network. The colon (:) following the LU name separates the remote system identifier from the file name. The
identifier for the remote system can be a fully qualified 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, Configuring Your System).
Enter the following command to receive the same file from the same remote system:
acopy CPINET.LUNAME:name2.c name1.c
To limit access to ACOPY by unauthorized users, you can configure 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