Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)

ftp(1) OSS Shell and Utilities Reference Manual
cr Strips the carriage-return character from a carriage-return/linefeed sequence when
receiving records during ASCII-type le transfers. (ftp terminates each ASCII-type
record with a carriage-return/linefeed sequence during
le transfers.) This conforms
with the UNIX system convention for terminating records with a single linefeed.
Records on remote hosts that have different record termination conventions may have
single linefeeds embedded in records. To distinguish these embedded linefeeds from
record delimiters, set cr to off. cr toggles between on and off.
delete remote_file
Deletes the specied remote le.
debug [on | off]
Prints each command sent to the remote host preceded by the string --> when debug on
is specied.
dir [remote_directory][local_file]
Writes a listing of the contents of remote_directory to the le local_le.If
remote_directory is not specied, dir lists the contents of the current remote directory.
If local_le is not specied or is a - (dash), dir displays the listing on the local terminal.
disconnect
See close.
form format
Species the form of the le transfer. The only form available is le.
get remote_file [local_file]
Copies the remote le to the local host. If local_le is not specied, the remote lename
is used locally and is altered by any settings made by the case, ntrans, and nmap sub-
commands. The ftp command uses the current settings for type, form, mode, and struct
while transferring the le. For additional information, refer to the description of each of
these subcommands.
glob Toggles lename expansion (globbing) for mdelete, mget, and mput. If globbing is off,
lename arguments for these subcommands are not expanded. When globbing is
enabled and a pattern-matching character is used in a subcommand that expects a single
lename, results may be different than expected. For example, the append and put sub-
commands perform lename expansion and then use only the rst lename generated.
Other ftp subcommands, such as cd, delete, get, rename, and rmdir, do not perform
lename expansion and take the pattern-matching characters literally.
Globbing for the mput subcommand is done locally in the same way as for the csh com-
mand. For mdelete and mget, each lename is expanded separately at the remote
machine and the lists are not merged. The expansion of a directory name may be
different than the expansion of a lename, depending on the remote host and the ftp
server.
To preview the expansion of a directory name, use the mls subcommand:
mls remote_le -
To transfer an entire directory subtree of les, transfer a tar archive of the subtree in
binary form, rather than using mget or mput.
3158 Hewlett-Packard Company 527188-004