Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

User Commands (d - f) ftp(1)
mode [mode]
Sets le transfer mode. The only mode available is stream.
modtime [remote_file]
Shows the last modication time of le remote_le on the remote machine.
mput [local_file ...]
Expands local_le at the local host and copies the indicated local les to the remote
host. Refer to the glob subcommand for more information on lename expansion. The
local lenames are used at the remote host and are altered by any settings made by the
ntrans and nmap subcommands. The ftp command uses the current settings for type,
form, mode, and structure while transferring the les. Refer to the description of each
subcommand for additional information.
nmap [inpattern outpattern]
Sets or unsets the lename mapping mechanism. If no arguments are specied, lename
mapping is turned off. If arguments are specied, source lenames are mapped for mget
and mput operations and for get and put operations when the destination lename is not
specied. This subcommand is useful when the local and remote hosts use different le
naming conventions or practices. Mapping follows the pattern set by inpattern and out-
pattern.
The inpattern variable species the template for incoming lenames, which may have
already been processed according to the case and ntrans settings. The template vari-
ables $1 through $9 can be included in inpattern. All characters in inpattern other than
$ and protected $s (that is, \$)dene the values of the template variables. For example,
if the inpattern is $1.$2 and the remote lename is mydata.dat, the value of $1 is
mydata and the value of $2 is dat.
The outpattern variable determines the resulting lename. The variables $1 through $9
are replaced by their values as derived from inpattern and the variable $0 is replaced by
the original lename. Additionally, the sequence [sequence1,sequence2] is replaced by
the value of sequence1 if sequence1 is not null; otherwise, it is replaced by the value of
sequence2. For example, the following subcommand would yield myle.data from
myle.data or myle.data.old, myle.le from myle, and myle.myle from .myle:
nmap $1.$2.$3 [$1,$2].[$2,le]
Spaces can be included in outpattern. Use the \ (backslash) character to prevent the spe-
cial meanings of $, [, ], and , (comma) in outpattern.
ntrans [in_characters [out_characters]]
Sets or unsets the lename character translation mechanism. If no arguments are
specied, character translation is turned off. If arguments are specied, characters in
source lenames are translated for mget and mput operations and for get and put opera-
tions when the destination lename is not specied. This subcommand is useful when
the local and remote hosts use different le naming conventions or practices. Character
translation follows the pattern set by in_characters and out_characters. Characters in a
source lename matching characters in in_characters are replaced by the corresponding
characters in out_characters. If the string in_characters is longer than the string
out_characters, characters in in_characters are deleted if they have no corresponding
character in out_characters.
527188-007 Hewlett-Packard Company 3161