Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)
ftp(1) OSS Shell and Utilities Reference Manual
mode [mode]
Sets file transfer mode. The only mode available is stream.
modtime [remote_file]
Shows the last modification time of file remote_file on the remote machine.
mput [local_file ...]
Expands local_file at the local host and copies the indicated local files to the remote
host. Refer to the glob subcommand for more information on filename expansion. The
local filenames 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 files. Refer to the description of each
subcommand for additional information.
nmap [inpattern outpattern]
Sets or unsets the filename mapping mechanism. If no arguments are specified, filename
mapping is turned off. If arguments are specified, source filenames are mapped for mget
and mput operations and for get and put operations when the destination filename is not
specified. This subcommand is useful when the local and remote hosts use different file
naming conventions or practices. Mapping follows the pattern set by inpattern and out-
pattern.
The inpattern variable specifies the template for incoming filenames, 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, \$)define the values of the template variables. For example,
if the inpattern is $1.$2 and the remote filename is mydata.dat, the value of $1 is
mydata and the value of $2 is dat.
The outpattern variable determines the resulting filename. The variables $1 through $9
are replaced by their values as derived from inpattern and the variable $0 is replaced by
the original filename. 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 myfile.data from
myfile.data or myfile.data.old, myfile.file from myfile, and myfile.myfile from .myfile:
nmap $1.$2.$3 [$1,$2].[$2,file]
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 filename character translation mechanism. If no arguments are
specified, character translation is turned off. If arguments are specified, characters in
source filenames are translated for mget and mput operations and for get and put opera-
tions when the destination filename is not specified. This subcommand is useful when
the local and remote hosts use different file naming conventions or practices. Character
translation follows the pattern set by in_characters and out_characters. Characters in a
source filename 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.
3−160 Hewlett-Packard Company 527188-004