Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)
User Commands (d - f) ftp(1)
open host [port]
Establishes a connection to the FTP server at the specified host. If the optional port
number is specified, ftp will attempt to connect to a server at that port. If the autologin
feature is set (that is, -n was not specified on the command line), ftp will attempt to
automatically log you into the FTP server. You must also have a $HOME/.netrc file
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 verification before retrieving, sending, or deleting multiple files during mget,
mput, and mdelete operations. Otherwise, ftp will perform the operation on all files
specified.
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 files between
the two servers. To establish the secondary control connection, specify open as the first
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 define new macros during the autologin pro-
cess.
• The close subcommand does not erase existing macro definitions.
• The get and mget subcommands transfer files from the host on the primary con-
nection to the host on the secondary connection.
• The put, mput, and append subcommands transfer files 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 file on the remote host. If you do not specify remote_file, ftp uses the
local filename to name the remote file, and the remote filename 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 files. 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 file transfer session and exits ftp. A synonym for bye.
quote string
Sends the specified 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 file to the local host. A synonym for get.
remotehelp [subcommand]
Requests help from the remote FTP server.
527188-021 Hewlett-Packard Company 3−165