Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)

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 file transfers. (ftp terminates each ASCII-type
record with a carriage-return/linefeed sequence during file 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 specified remote file.
debug [on | off]
Prints each command sent to the remote host preceded by the string --> when debug on
is specified.
dir [remote_dire ctory][local_file]
Writes a listing of the contents of remote_dire ctory to the file local_file.If
remote_directory is not specified, dir lists the contents of the current remote directory.
If local_file is not specified or is a - (dash), dir displays the listing on the local terminal.
disconnect
See close.
form format
Specifies the form of the file transfer. The only form available is file.
get remote_file [local_file]
Copies the remote file to the local host. If local_file is not specified, the remote filename
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 file. For additional information, refer to the description of each of
these subcommands.
glob Toggles filename expansion (globbing) for mdelete, mget, and mput. If globbing is off,
filename 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
filename, results may be different than expected. For example, the append and put sub-
commands perform filename expansion and then use only the first filename generated.
Other ftp subcommands,
such as cd, delete, get, rename, and rmdir, do not perform
filename 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 filename 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 filename, depending on the remote host and the ftp
server.
To preview the expansion of a directory name, use the mls subcommand:
mls remote_file -
To transfer an entire directory subtree of files, transfer a tar archive of the subtree in
binary form, rather than using mget or mput.
3162 Hewlett-Packard Company 527188-021