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

User Commands (d - f) ftp(1)
open host [port]
Establishes a connection to the FTP server at the specied host. If the optional port
number is specied, ftp will attempt to connect to a server at that port. If the autologin
feature is set (that is, -n was not specied on the command line), ftp will attempt to
automatically log you into the FTP server. You must also have a $HOME/.netrc le
with the correct information in it and the correct permissions set.
prompt Toggles interactive prompting. If interactive prompting is on (the default), ftp will
prompt for verication before retrieving, sending, or deleting multiple les during mget,
mput, and mdelete operations. Otherwise, ftp will perform the operation on all les
specied.
proxy [subcommand]
Executes an ftp command on a secondary control connection. This subcommand allows
ftp to simultaneously connect to two remote FTP servers for transferring
les between
the two servers. To establish the secondary control connection, specify open as the rst
proxy subcommand. Enter the subcommand proxy ? to see the other ftp subcommands
that are executable on the secondary connection. The following subcommands behave
differently when prefaced by proxy:
The open subcommand does not dene new macros during the autologin pro-
cess.
The close subcommand does not erase existing macro denitions.
The get and mget subcommands transfer les from the host on the primary con-
nection to the host on the secondary connection.
The put, mput, and append subcommands transfer les from the host on the
secondary connection to the host on the primary connection.
File transfers require that the FTP server on the secondary connection support the PASV
(passive) instruction.
put local_file [remote_file]
Stores a local le on the remote host. If you do not specify remote_le, ftp uses the
local lename to name the remote le, and the remote lename is altered by any settings
made by the ntrans and nmap subcommands. The ftp command uses the current set-
tings for type, form, mode, and structure while transferring the les. Refer to the
description of each subcommand for additional information.
pwd Displays the name of the current directory on the remote host.
quit Ends the le transfer session and exits ftp. A synonym for bye.
quote string
Sends the specied string verbatim to the remote host. Unpredictable results can occur
when you quote commands that involve data transfers.
recv remote_file [local_file]
Copies the remote le to the local host. A synonym for get.
remotehelp [subcommand]
Requests help from the remote FTP server.
527188-003 Hewlett-Packard Company 3161