Ntrans, Examples, Open – HP Integrity NonStop H-Series User Manual

Page 66: Ntrans open

Advertising
background image

ntrans

Use the ntrans command to define or turn off a mechanism for translating local file names to
remote file names during mput, put, and append operations and for translating remote file names
to local file names during mget and get operations.

ntrans [ inchars [ outchars ] ]

inchars

is a sequence of characters to be translated; each character is translated to the character in
the corresponding position in outchars; for example, if inchars is abc and outchars is
xyz

, FTP translates the name of the file being copied by changing the letter a to x, the letter

b

to y, and the letter c to z.

If a character in inchars does not have a corresponding character in outchars, the character
is deleted from the file name; for example, if the value of inchars is the letters abc and the
value of outchars is xy, the letter c is deleted from any file name being translated.

To turn the translating mechanism off, omit inchars and outchars.

outchars

specifies the characters to which inchars characters are translated.

If you specify a target name for a get, put, or append operation, the ntrans scheme is not
applied.

If case is on, it is applied before ntrans.

Examples

The following command defines a translation scheme in which the letter x translates to the number
1

, the letter y translates to the number 2, and the letter z is deleted.

ftp> ntrans xyz 12

When translating files from a UNIX system to a NonStop system, the following translation applies:
UNIX allows in file names special characters that the Guardian operating system does not allow:

ftp> ntrans +-_!%=:/

You might want to use a longer list of characters for the value of inchars. All the inchars
characters will be deleted from the incoming file name.

After you finish transferring the files to which this scheme applies, you can reset as follows:

ftp> ntrans

open

Use the open command to connect to the FTP server on a remote system.

open host [ port ]

host

is a host name or host address identifying the remote system. See “Addressing Remote Hosts”
in Section 1, Introduction to TCP/IP Applications and Utilities.

port

specifies the number of a port on the remote system that you want FTP to contact. If you omit
port

, the well-known (default) port is 21.

If you did not specify the -n option when you initiated your FTP session, FTP attempts to log you
on to the FTP server.For more information, see

“Running FTP at a Terminal” (page 37)

.

66

FTP—Transferring Files

Advertising
This manual is related to the following products: