Specifying file names, Access to guardian spoolers, Specifying a set of files – HP Integrity NonStop H-Series User Manual
Page 45

names beginning with the lowercase letter g (for more information, see
),
ftp> pwd
257 "/usr" is current default.
ftp> dir projects
(A list of file names and file attributes appears.)
ftp> mls g*
(A list of file names beginning with g appears.)
When you request directory information, you can specify that you want the output to be sent to a
file instead of displayed on your terminal. For example, the following command writes the list of
files from the projects directory to a file named dirinfo:
ftp> ls projects dirinfo
Specifying File Names
In many FTP commands, you specify the names of local and remote files. To specify a local file,
you must follow the Guardian file naming conventions. To indicate that the file to receive data is
the standard input file (usually your home terminal), specify a hyphen (-). For example, this command
displays a remote file named memo825 on your terminal:
ftp> get memo825 -
To specify a remote file name, you must know the naming conventions used by the remote system.
When entering a HP NonStop fully qualified file name (that is, one that contains a system node
name), remember that many systems use the backslash character as an escape character. In such
cases, you must enter the fully qualified file name by using two backslash characters. For example:
ftp> GET \\SYS1.$VOL1.MSS.Messages
When specified with a parameter of \\sys.$vol.subvol.filename, the MPUT, and PUT
commands will transfer the specified file to the remote system, where it will be given the name
\sys.$vol.subvol.filename
. For MGET or GET commands, FTP will retrieve the remote file
named \sys.$vol.subvol.filename.
Access to Guardian Spoolers
get and put commands support access to Guardian spoolers. For example, to send the remote file
report to a the Guardian spooler $S.#titanu, issue the following command:
ftp> get report $S.#titanu
To send the local file analysis to the remote Guardian spooler $S.#comprt, issue the following
command:
ftp> put analysis $S.#comprt
Specifying a Set of Files
When you copy or delete multiple files, you can specify the set of files with a wild-card name (a
name that contains wild-card characters). The local or remote system expands the wild-card name
(global name) to a list of files. This technique is called “globbing.”
When you want to specify a wild-card name, you must make sure that the glob toggle is on. You
can use the glob command to turn globbing on and off. To see the current setting of glob, you can
use the status command:
ftp> glob
ftp> status
Connected to warehs1.zzzco.COM.
No proxy connection.
Mode: stream; Type: ascii; Form: non-print; Structure: file
Specifying File Names
45