Command Reference Guide

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/!!!intro.1
________________________________________________________________
___ ___
f
ftp(1) ftp(1)
NAME
ftp - file transfer program
SYNOPSIS
ftp [-g][-i][-n][-c][-v][-B size][server-host ]
DESCRIPTION
ftp is a user interface to the File Transfer Protocol. ftp copies files over a network connection between
the local ‘‘client’’ host and a remote ‘‘server’’ host. ftp runs on the client host.
Options
The ftp command supports the following options:
-g Disable file name ‘‘globbing’’; see the glob command, below. By default, when this option is not
specified, globbing is enabled.
-i Disable interactive prompting by multiple-file commands; see the prompt command, below.
By default, when this option is not specified, prompting is enabled.
-n Disable ‘‘auto-login’’; see the
open command, below. By default, when this option is not
specified, auto-login is enabled.
-c When this option is set, the SYST and TYPE calls are not made by the ftp client to the
server upon establishing a connection. The
-c option takes effect only when auto-login is dis-
abled i.e. when it is invoked along with the -n option. This option does not disable the SYST
and TYPE commands, but only refrains from invoking these commands upon establishinga con-
nection.
-v Enable verbose output; see the verbose command, below. If this option is not specified, ftp
displays verbose output only if the standard input is associated with a terminal.
-B Set the buffer size of the data socket to size blocks of 1024 bytes. The valid range for size is an
integer from 1 to 64 (default is 56).
Note: A large buffer size will improve the performance of
ftp on fast links (e.g., FDDI), but
may cause long connection times on slow links (e.g., X.25).
The name of the server host that
ftp communicates with can be specified on the command line. If the
server host is specified, ftp immediately opens a connection to the server host; see the open
command,
below. Otherwise,
ftp waits for commands from the user.
File Transfer Protocol specifies file transfer parameters for type, mode, form, and struct.
ftp supports
the
ASCII, binary, and tenex File Transfer Protocol types.
ASCII is the default FTP type. (It
should be noted though that, whenever
ftp establishes a connection between two similar systems, it
switches automatically to the more efcient
binary type.) ftp supports only the default values for the
file transfer parameters mode which defaults to
stream, form which defaults to non-print, and struct
which defaults to file.
COMMANDS
ftp supports the following commands. Command arguments with embedded spaces must be enclosed in
quotes (for example, "argument with embedded spaces").
![command [args]]
Invoke a shell on the local host. The SHELL environment variable specifies which shell program to
invoke. ftp invokes /usr/bin/sh if SHELL is undefined. If command is specified, the shell
executes it and returns to ftp. Otherwise, an interactive shell is invoked. When the shell ter-
minates, it returns to ftp.
$ macro-name [args]
Execute the macro macro-name that was defined with the macdef command. Arguments are
passed to the macro unglobbed.
account [passwd]
Supply a supplemental password required by a remote system for access to resources once a login has
been successfully completed. If no argument is included, the user is prompted for an account pass-
word in a non-echoing input mode.
append local-file [remote-file]
Copy local-file to the end of remote-file.Ifremote-file is left unspecified, the local file name is used in
HP-UX Release 11i: December 2000 1 Section 1295
___
___