HP LCS60 Installation Manual page 332

Network interface for ethernet r3.0
Table of Contents

Advertisement

FTP ( 1 )
nmap [inpattern outpattern]
Unset (no arguments) or set the file name mapping mechanism. File name
mapping is used to automatically derive a destination file name from the
source file name during get, mget, mput, and put commands. This is of
particular interest when connecting to a non-UNIX remote host with dif-
ferent file naming conventions or practices.
The input pattern consists of the variables $1 through $9 and literals and is
matched against a source file name to extract the portions of interest. The input
pattern cannot contain spaces.
The output pattern specifies the manner in which the variables derived by the
input pattern should be used to create the destination file name. The variables $1
through $9 are replaced by their values. The variable $0 is replaced by the original
source file name. The pattern [str1,str2] is replaced by str1 if str1 is not a null
string or by str2 if str1 is a null string. All other spaces and characters are treated
as literals.
For example, the mapping 'nmap $1;$2 $1.$2' can be used to create a UNIX
equivalent of the VMS version number extension by replacing the semicolon with
a period.
ntrans [inchars [outchars]]
Unset (no arguments) or set the file name character translation mechanism.
Character translation is used to automatically derive a destination file
name from the source file name during get, mget, mput, and put commands.
This is of particular interest when connecting to a non-UNIX remote host
with different file naming conventions or practices.
If a character in the source file name matches the nth character in inchars, it will be
replaced by the corresponding character from outchars to create the destination file
name. If the inchars string is longer than the outchars string, the characters without
a corresponding output character will be ignored in the source file name.
For example, the translation 'ntrans ;$-% .' will translate semicolons to periods
wherever they appear and ignore all dollar signs, hyphens, and percent signs.
open host [port]
Establish a connection to the FTP server on the specified remote host. Port
is used to specify an alternate FTP server; it can be the actual port number
or the service name. If autologin is enabled (default), ftp will also attempt
to automatically log the user in.
prompt
Toggle interactive prompting. Interactive prompting occurs during multi-
ple file transfers to allow the user to selectively retrieve or store files; it is
turned on by default. If prompting is turned off, any mget or mput will
transfer all specified files.
E-14
FTP
Issue 3

Advertisement

Table of Contents
loading

Table of Contents