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

User Commands (d - f) ftp(1)
hash Toggles # (hash sign) printing. When hash is on, ftp displays one hash sign for each
data block (1024 bytes) transferred.
help [subcommand]
Displays help information. Refer to the ? subcommand.
lcd [directory]
Changes the working directory on the local host. If you do not specify a directory, ftp
uses your home directory.
ls [remote_dire ctory][local_file]
See the dir subcommand.
macdef macro
Defines a subcommand macro. Subsequent lines up to a null line (two consecutive
linefeeds) are saved as the text of the macro. Up to 16 macros containing at most 4096
bytes for all macros can be defined. Macros remain defined until redefined or a close is
executed.
The special characters $ (dollar sign) and \ (backslash) have special uses in ftp macros.
A $ followed by one or more numbers is replaced by the corresponding macro parameter
on the invocation line (refer to the $ subcommand). A $ followed by an i indicates that
the macro is to loop, with $i being replaced by consecutive parameters on each pass.
The first macro parameter is used on the first pass, the second parameter is used on the
second pass, and so on. A \ prevents special treatment of the next character. Use the \ to
turn off the special meanings of $ and \.
mdelete re mote_file s
Expands remote_files and deletes the indicated remote files.
mdir [remote_direct ory ... local_file]
Expands re mote_direct ory at the remote host and writes a listing of the contents of the
remote_directory to the local_file. If the remote_dire ctory argument contains a pattern-
matching character, mdir prompts for a local_file if none is specified. If the
remote_directory argument is a list of remote directories, separated by spaces, the last
argument in the list must be either a local filename or a - (dash). If local_file is -, mdir
displays the listing on the local terminal. If interactive prompting is on (refer to the
prompt subcommand), ftp prompts you to verify that the last argument is a local file and
not a remote directory.
mget remote_file ...
Expands remote_
files at the remote host and copies the indicated remote files to the
current directory on the local host. Refer to the glob subcommand for more information
on filename expansion. The remote filenames are used locally and are altered by any
settings made by the case, ntrans, and nmap subcommands. The ftp command uses the
current settings for type, form, mode, and structure while transferring the files. Refer
to the description of each of these subcommands for additional information.
mls [remote_direct ory ... local_file]
Expands re mote_direct ory at the remote host and writes an abbreviated file listing of the
indicated remote directories to a local file. If the re mote_directory argument contains a
pattern-matching character, mls prompts for a local_file if none is specified. If the
remote_directory argument is a list of remote directories, separated by spaces, the last
argument in the list must be either a local filename or a - (dash). If local_file is -, mls
displays the listing on the local terminal. If interactive prompting is on (refer to the
prompt subcommand), ftp prompts you to verify that the last argument is a local file and
not a remote directory.
527188-021 Hewlett-Packard Company 3163