HP-UX Reference (11i v1 00/12) - 1 User Commands A-M (vol 1)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/!!!intro.1
________________________________________________________________
___ ___
f
ftp(1) ftp(1)
commands and put commands issued without a specified remote target filename. If arguments are
specified, local lenames are mapped during mget commands and get commands issued without a
specified local target filename. This command is useful when connecting to a non-UNIX remote com-
puter with different file naming conventions or practices. The mapping follows the pattern set by
inpattern and outpattern. inpattern is a template for incoming filenames (which may have already
been processed according to the ntrans and case settings). Variable templating is accomplished
by including the sequences $1, $2, ..., $9 in inpattern. Use \ to prevent this special treatment of
the $ character. All other characters are treated literally, and are used to determine the nmap
inpattern variable values. For example, given inpattern $1.$2 and the remote file name
mydata.data , $1 would have the value mydata, and $2 would have the value data. The out-
pattern determines the resulting mapped filename. The sequences $1, $2, ..., $9 are replaced by
any value resulting from the inpattern template. The sequence $0 is replaced by the original
filename. Additionally, the sequence [seq1,seq2] is replaced by seq1 if seq1 is not a null string; oth-
erwise it is replaced by seq2. For example, the command nmap $1.$2.$3
[$1,$2].[$2,file]
would yield the output filename myfile.data for input filenames
myfile.data and myfile.data.old, myfile.file for the input filename myfile, and
myfile.myfile for the input filename .myfile. Spaces can be included in outpattern, as in the
example: nmap $1 | sed s/*$// > $1
Use the \ character to prevent special treatment of the
$, [, ], and , characters.
ntrans [inchars [outchars]]
Set or unset the filename character translation mechanism. If no arguments are specified, the
filename character translation mechanism is unset. If arguments are specified, characters in remote
filenames are translated during mput commands and put commands issued without a specified
remote target filename. If arguments are specified, characters in local filenames are translated dur-
ing mget commands and get commands issued without a specified local target filename. This com-
mand is useful when connecting to a non-UNIX remote computer with different file naming conven-
tions or practices. Characters in a filename matching a character in inchars are replaced with the
corresponding character in outchars. If the character’s position in inchars is longer than the length of
outchars, the character is deleted from the file name.
open server-host [port-number]
Establish a connection to server-host, using port-number (if specified). If auto-login is enabled, ftp
attempts to log into the server host.
passive
Toggle passive mode of transfer. By default, the passive mode of transfer is disabled. This command
enables the server to specify the data port for the ftp transfer.
prompt
Toggle interactive prompting. By default, ftp prompts the user for a yes or no response for each
output file during multiple-file commands. If interactive prompting is disabled, ftp performs the
command for all specified files.
proxy ftp-command
Execute an ftp command on a secondary control connection. This command allows simultaneous
connection to two remote FTP servers for transferring files between the two servers. The first
proxy command should be an open, to establish the secondary control connection. Enter the com-
mand proxy ? to see other FTP commands executable on the secondary connection. The following
commands behave differently when prefaced by proxy: open does not define new macros during
the auto-login process, close does not erase existing macro definitions, get and mget transfer
files from the host on the primary control connection to the host on the secondary control connection,
and
put, mput, and append transfer files from the host on the secondary control connection to the
host on the primary control connection. Third party file transfers depend upon support of the FTP
protocol PASV command by the server on the secondary control connection.
put local-file [remote-file]
Copy local-file to remote-file.Ifremote-file is unspecified, ftp assigns the local-file name, processed
according to any ntrans or nmap settings, to the remote-file name.
pwd Write the name of the remote working directory to stdout.
quit
A synonym for bye.
quote arguments
Send arguments, verbatim, to the server host. See ftpd(1M).
Section 1298 4 HP-UX Release 11i: December 2000
___
___