HP-UX Reference (11i v2 03/08) - 1 User Commands A-M (vol 1)
f
ftp(1) ftp(1)
by the remote server, including violations of the FTP protocol. If the delay results from unexpected
remote server behavior, the local ftp program must be killed manually.
File Naming Conventions
Files specified as arguments to
ftp
commands are processed according to the following rules.
• If the file name
- is specified,
ftp uses the standard input (for reading) or standard output (for writ-
ing).
• If the first character of the file name is
|, ftp interprets the remainder of the argument as a shell
command.
ftp forks a shell, using popen() (see popen(3S)) with the supplied argument, and
reads (writes) from standard output (standard input). If the shell command includes spaces, the argu-
ment must be quoted, as in:
"| ls -lt".
Some useful examples of this mechanism are:
ls . "| more".
The above command lists the files in the current directory page by page.
put "| tail -20 loc_file" rem_file.
This command copies the last twenty lines of the local file "loc_file" to the remote system as "rem_file".
• Otherwise, if globbing is enabled,
ftp expands local file names according to the rules used by the C
shell (see csh(1)); see the glob command, below. If the ftp command expects a single local file
(e.g., put), only the first filename generated by the globbing operation is used.
• For
mget commands and get commands with unspecified local file names, the local filename is
named the same as the remote filename, which may be altered by a case, ntrans
,or nmap setting.
The resulting filename may then be altered if
runique is on.
• For
mput commands and put commands with unspecified remote file names, the remote filename is
named the same as the local filename, which may be altered by a ntrans or nmap
setting. The
resulting filename may then be altered by the remote server if
sunique is on.
WARNINGS
Correct execution of many commands depends upon proper behavior by the remote server.
DIAGNOSTICS
Error! could not retrieve authentication type.
Please notify sys admin.
There are two authentication mechanisms used by
ftp. One authentication mechanism is based on
Kerberos and the other is not. The type of authentication mechanism is obtained from a system file
which is updated by
inetsvcs_sec (see inetsvcs_sec (1M)). If the system file does not contain
known authentication types, the above error is displayed.
AUTHOR
ftp was developed by the University of California, Berkeley.
SEE ALSO
csh(1), rcp(1), ftpd(1M), inetsvcs_sec(1M), ftpusers(4), hosts(4), krb5.conf(4), netrc(4), sis(5).
Section 1−−312 Hewlett-Packard Company − 7 − HP-UX 11i Version 2: August 2003