Status, Example, Stru[ct – HP Integrity NonStop H-Series User Manual

Page 86: Example 1, Status stru[ct

Advertising
background image

status

Use the status command to display the current status of all FTP options and toggles and the names
of macros currently defined.

status

Example

To display current session information, enter status at the ftp> prompt. The response is similar to
this one:

ftp> status
Connected to warehs1.zzzco.COM.
No proxy connection.
Mode: stream; Type: ascii; Form: non-print; Structure: file
Verbose: on; Bell: off; Prompting: on; Globbing: on
Store unique: off; Receive unique: off
Case: off; CR stripping: on
Ntrans: (in) abc (out) cfg
Nmap: (in) $2.$1 (out) $1.$2
Hash mark printing: off; Use of PORT cmds: on
Binary filecode (used in file retrieval): 0
Local working vol.subvol: "$vol1.docs"
Macros: getf
po
ftp>

stru[ct]

Use the stru[ct] command to specify the structure of a file to be transferred. The options are
file-structure or record-structure. The file-structure option is the default.

For file-structure files, there is no internal structure; the file is a continuous sequence of data bytes.

For record-structure files, the file is made up of sequential records delimited using an embedded
carriage return/line feed <CRLF> character sequence.

stru[ct] [ r | f ]

r

specifies a transparent record-structure file transfer

f

specifies a file-structure (or nontransparent, record-structure) file transfer. This is the default
value.

Use the stru[ct] command with the r option to transparently transfer record-structure files
containing embedded <CRLF> character sequences.

Use the stru[ct] command with the f option to return FTP to file-structure mode for transferring
ASCII or binary files. Also, if the file to be transferred is a structured file that does not contain
embedded <CRLF> character sequences, HP recommends that you transfer normally using ASCII
or binary file-structure mode.

The “Structure:” field in the display for the FTP status command displays the current setting for this
value. For this feature to work, both the local and remote implementations of FTP must support the
struct command.

NOTE:

You cannot specify alternate key parameters to create structured files.

Example 1

To transparently transfer record-structure files containing embedded <CRLF> character sequences,
first enter the stru r command (to put FTP into record-structure transfer mode), then issue the put

86

FTP—Transferring Files

Advertising
This manual is related to the following products: