Sending specific arguments, Receiving data – HP Integrity NonStop H-Series User Manual

Page 47

Advertising
background image

Either of the following commands sends a copy of a file named newaccts on the current default
subvolume on the local system to the current working directory on the remote system. The name of
the remote file will also be newaccts, modified by the current settings of nmap and ntrans:

ftp> put newaccts
ftp> send newaccts

If you specify a remote file name, FTP sends that name to the remote system exactly as you specify
it. You can specify a simple file name or a name qualified by directory names, such as a UNIX
pathname.

To send copies of multiple files, you use the mput command and specify a wild-card name for the
set of local files you want to send. The following command copies to the remote system all files
that have names ending with the four letters acct, followed by a single character:

ftp> mput *acct?

The local system expands the wild-card name entry *acct? to a list of files that match the pattern.
Each of the local file names is modified according to the current setting of ntrans and nmap to
obtain the name of the corresponding remote file.

If the prompt toggle is on, FTP prompts you to confirm the transfer of each file, as in the following
example:

ftp> mput *acct?
mput BIGACCT1? y
200 PORT command successful.
.
.
mput NEWACCT3? n
mput OLDACCT3? y
.

Sending Specific Arguments

The quote command sends arguments you specify directly to the FTP server on the remote system.
This command is provided to allow you to bypass normal command parsing to accommodate a
special situation. You should use this command carefully, because sending an invalid command
could disrupt your current FTP session.

The following quote command sends the four letters noop, exactly as they are entered:

ftp> quote noop

Receiving Data

FTP allows you to receive copies of one or more files from a remote system. You can copy a remote
file to your local system by using either the get or recv command, or you can make copies of
multiple remote files by using the mget command.

Either of the following commands copies a remote file named delinqac from the current working
directory on the remote system to the current default subvolume. The name of the new file will also
be delinqac modified by the current settings of nmap and ntrans:

ftp> get delinqac
ftp> recv delinqac

You can specify a name for the local file, as in the following example:

ftp> get delinqac dlqacct

To make copies of multiple remote files, you use the mget command and specify a wild-card name
for the set of remote files you want to copy. The following command copies all files that have names
beginning with the three letters sal:

ftp> mget sal*

Receiving Data

47

Advertising
This manual is related to the following products: