Example, Prompt, Proxy – HP Integrity NonStop H-Series User Manual

Page 67: Prompt proxy

Advertising
background image

Example

To connect to the remote system named sales3 through port 23, enter the following command:

ftp> open sales3 23
Name (sales3:guest): user
Password:
ftp>

If you do not have a password on the remote system, enter a space and press the RETURN key.

prompt

Use the prompt command to turn interactive prompting on or off. If prompt is on, you can selectively
retrieve, store, and delete files; FTP prompts you before each file is transferred. This command
operates as a toggle.

prompt

If prompt is off, mget and mput operations transfer all files in the expanded list, and mdelete
operations delete all files in the expanded list.

When you start an FTP session, prompt is on.

Example

Assume prompt is off. The following command shows the result of turning prompt on:

ftp> prompt
ftp> mput abc*
mput ABCDE? y
.
.
.
mput ABCXY? n
ftp>

proxy

Use the proxy command to execute an FTP command on a secondary connection. You can use the
proxy command to connect to a second remote FTP server (secondary) while still connected to the
current FTP server (primary). Using the local FTP client, you can issue commands to transfer files
between the two remote servers.

proxy ftp-command

ftp-command

specifies the FTP command that you want to execute.

Assume you are already connected to a primary FTP server. You can follow these guidelines to
also connect to and communicate with a secondary FTP server:

First establish a connection to the secondary FTP server by using the proxy open command.
Your FTP client is then connected to both FTP servers.

You can use the regular FTP commands to get information about or transfer data between the
primary FTP server and the local host.

To get information about files and directories on the secondary FTP server, use the proxy
commands; for example, proxy dir, proxy ls, and proxy pwd.

If the FTP servers also support the PASV command, you can transfer data between the two
remote servers by issuing proxy commands. (You can use the remotehelp command to
check whether the server supports the PASV command.)

The proxy get and proxy mget commands copy files from the primary to the secondary
server.

FTP Command Reference

67

Advertising
This manual is related to the following products: