Example, Examples – HP Integrity NonStop H-Series User Manual

Page 90

Advertising
background image

NOTE:

The statistics displayed by this command are approximate and should not be used to

compare FTP performance with other implementations.

Example

Assume verbose is on. The following example illustrates the effect of turning verbose off:

ftp> put xtst123
200 PORT command successful.
150 Opening data connection for xtst123 (127.0.0.1,1198)
226 Transfer complete.
local: xtst123 remote: xtst123
45 bytes sent in 0.02 seconds (2.19 Kbytes/s)
ftp> verbose
Verbose mode off.
ftp> put ytst123
ftp>

When verbose is on, FTP displays information about the put operation, indicating when the
connection is made, when the file transfer completes, the names of the local and remote files, and
the number of bytes transferred.

?

Use the ? command to display either a list of all commands or helpful information about a specific
command. (This command performs the same operation as the help command.)

? [ command-name ]

command-name

specifies an FTP command. If you omit command-name, a list of all FTP commands is displayed.

Example

The following command requests information about the proxy command:

ftp> ? proxy
proxy issue command on alternate connection

$

Use the $ command to execute a macro.

$macro-name [ argument [ argument ] ... ]

macro-name

specifies one of the macros you have defined by using the macdef command.

argument

provides the value of an argument specified in one or more FTP commands in the macro. The
first value replaces argument $1, the next value replaces $2, and so forth. If the macro is
defined with the $i argument, each value replaces $i consecutively as the macro is repeatedly
executed.

FTP does not expand any argument values based on wild-card characters in wild-card names
before passing them to the macro.

Examples

Assume the following macro is currently defined:

macdef custget
ntrans ab+-/ xy
mget $i

To execute this macro three times using different wild-card names, enter the following command:

90

FTP—Transferring Files

Advertising
This manual is related to the following products: