ftp(1)

Kerberos

ftp(1)

that the last argument is indeed the target local ®le for nlist output.

nmap [ inpattern outpattern ]

Set or unset the ®lename mapping mechanism. If no arguments are speci®ed, the ®lename mapping mechanism is unset. If arguments are speci®ed, remote ®lenames are mapped during mput commands and put commands issued without a speci®ed remote target ®lename. If arguments are speci®ed, local ®lenames are mapped during mget commands and get commands issued without a speci®ed local target ®lename. This command is useful when connecting to a non-UNIX remote computer with different ®le naming conventions or practices. The mapping follows the pattern set by inpattern and outpattern. inpattern is a template for incoming ®lenames (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 ®le name mydata.data , $1 would have the value mydata, and $2 would have the value data. The out- pattern determines the resulting mapped ®lename. The sequences $1, $2, ..., $9 are replaced by any value resulting from the inpattern template. The sequence $0 is replaced by the original ®lename. Additionally, the sequence [seq1,seq2] is replaced by seq1 if seq1 is not a null string; otherwise it is replaced by seq2. For example, the command nmap $1.$2.$3 [$1,$2].[$2,file] would yield the output ®lename myfile.data for input ®lenames myfile.data and myfile.data.old, myfile.file for the input ®lename myfile, and

myfile.myfile for the input ®lename .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 ®lename character translation mechanism. If no arguments are speci®ed, the ®lename character translation mechanism is unset. If arguments are speci®ed, characters in remote ®lenames are translated during mput commands and put commands issued without a speci®ed remote target ®lename. If arguments are speci®ed, characters in local ®lenames are translated during mget commands and get commands issued without a speci®ed local target ®lename. This command is useful when connecting to a non-UNIX remote computer with different ®le naming conventions or practices. Characters in a ®lename 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 ®le name.

open server-host [ port-number ]

Establish a connection to server-host, using port-number(if speci®ed). If auto-loginis enabled, ftp attempts to log into the server host.

prompt

Toggle interactive prompting. By default, ftp prompts the user for a yes or no response for each output ®le during multiple-®le commands. If interactive prompting is disabled, ftp performs the command for all speci®ed ®les.

put local-file [ remote-file ]

Copy local-®leto remote-®le. If remote-®leis unspeci®ed, ftp assigns the local-®lename, processed according to any ntrans or nmap settings, to the remote-®lename.

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).

recv remote-file [ local-file ]

A synonym for get.

reget remote-file [ local-file ]

reget acts like get, except that if local-®leexists and is smaller than remote-®le, local-®leis presumed to be a partially transferred copy of remote-®leand the transfer is continued from the apparent point of failure. This command is useful when transferring very large ®les over networks that tend to drop connections.

rhelp [ command-name ]

Request help from the server host. If command-nameis speci®ed, supply it to the server. See

HP-UX Release 11i: December 2000

− 4 −

Section 1305

f