Examples – HP Integrity NonStop H-Series User Manual

Page 68

Advertising
background image

The proxy put, proxy mput, and proxy append commands copy files from the secondary
to the primary server.

NOTE:

The proxy put and the proxy append commands will take filecode, primary,

secondary, and maxextents for remote filename.

Examples

Assume you are working at a terminal connected to the local system in the main office. This system
is named main. If you want to copy a file from sales district A’s system (salesa) to sales district
B’s system (salesb), you first log on to one of the systems.

Assume you have already started FTP and you enter open to log on to salesa as your primary
host. Then, you enter a proxy open command to log on to the secondary host, salesb.

ftp> open salesa
Connecting to salesa.zzzco.COM....Established.
220 comm......
Name (salesa.guest): sales.joan
331 Password required .....
Password:

230 User SALES.JOAN logged in.
ftp> verbose off
Verbose mode off.
ftp> proxy open salesb
Name (salesb:guest): salacct.joanr
Password:
ftp> dir

(Information about files on the primary server is displayed.)
ftp> proxy dir

(Information about files on the secondary server is displayed.)

To copy a file from salesa to salesb you use the proxy get command. Specify the file named
filea

on salesa as remote-file and the file named fileb on salesb as local-file.

ftp> proxy get filea fileb
local: fileb remote: filea

To close the secondary connection (to salesb), enter:

ftp> proxy close

You are still connected to the salesa system.

put

Use the put command to copy a local file to the remote system. You must have a connection
established with an FTP server (called an FTP session) before you can issue the put command.
The file transfer is based on the current status of all FTP options, toggles, and macros. Use the FTP
status

command to display these values. If the file you wish to copy is a structured file containing

imbedded <CRLF> character sequences, you must first issue the stru command with the r option.
See the stru command for more details.

The put command differs in the way it handles extents for structured files and unstructured files.

If you issue a get command for an unstructured file and a file with the same name already exists
on the remote system, the command purges the old file and creates a new file with default extents.
However, if you specify extents in the put command by using the primary, secondary, and
maxextents

parameters, the command creates a new file containing the specified extents.

If you issue a put command for a structured file and a file with the same name already exists on
the remote system, the command does not purge the old file, but merely overwrites it. The extents
of the old file are retained in the new file. Thus, any extents you specify are ignored.

68

FTP—Transferring Files

Advertising
This manual is related to the following products: