Append, Example, Ascii – HP Integrity NonStop H-Series User Manual

Page 49: Aslinemode, Append ascii aslinemode

Advertising
background image

append

Use the append command to append the contents of a local file to a file on a remote system.

append local-file [ remote-file ]

local-file

is the Guardian file name of the file to be appended.

remote-file

is the name of the remote file. Specify remote-file as required by the remote system.

If you do not specify remote-file, FTP uses the local-file name, after altering the name
based on the current settings of ntrans and nmap.

FTP uses the current settings of type, form, mode, and stru to determine how to append the
file.

When applied to a key-sequenced file, the append command appends only a record that does
not already exist in the file. If the record does exist, FTP returns an error message.

Example

To append a local file named newrules to a remote file named guidelines, enter:

ftp> append newrules guidelines

ascii

Use the ascii command to set the data transfer type to ASCII. Use the ASCII transfer type when
you want to transfer ASCII files (files containing printable ASCII characters only), such as text files
or spooler files, or to transfer structured file types, such as key-sequenced, entry-sequenced, and
relative ENSCRIBE files. The ASCII transfer type is the default value when you start an FTP client
session. You must have a connection established with an FTP server (called an FTP session) before
you can issue the ascii command. When using the ASCII data transfer, tab characters in the file
being transferred are changed to blanks. See the description of the binary command if you want
to transfer a binary file. The get and put commands describe how to transfer files.

ascii

Example

To change the data transfer type to ASCII, enter:

ftp> ascii

aslinemode

Use the aslinemode command to receive files with lines longer than 239 ASCII characters.
Depending on the aslinemode command option specified, FTP will either truncate lines longer than
239 characters, insert a line feed character after the 239th character, or abort after receiving the
239th character in a line.

aslinemode { none | cut | wrap }

none

causes the FTP receive to abort after receiving the 240th ASCII character in a line. This is the
default.

cut

FTP truncates each line in a received file to 239 ASCII characters.

FTP Command Reference

49

Advertising
This manual is related to the following products: