TS/MP System Management Manual (G06.24+, H06.03+)
PATHCOM Operation Commands
NonStop TS/MP System Management Manual—541819-001
10-2
CMDCWD Command
CMDCWD Command
Use the CMDCWD command to set a default OSS directory. When processing ADD or
ALTER commands, the PATHMON process uses this default directory to resolve OSS
relative file names only if no value has been defined for the CWD attribute.
oss-pathname
specifies an absolute OSS directory name. For more information on OSS
pathnames, see the subsection OSS Pathnames on page 8-8.
Considerations
•
When resolving relative pathnames, the PATHMON process first looks for the OSS
directory defined for the CWD attribute. If no value is defined, the OSS directory
defined by the CMDCWD command is used.
•
The CMDCWD and the SET SERVER CWD commands both define a value for the
CWD attribute. They do not function the same way, however.
When resolving relative OSS pathnames, the value defined by the SET SERVER
CWD command takes precedence. The RESET SERVER command resets this
value to null.
The value defined by the CMDCWD command is used to resolve relative OSS
pathnames only if no value has been set using the SET SERVER CWD command.
It is a default absolute pathname that you can define for a server class. The
RESET SERVER command has no effect on this value. To reset this value to null,
use the RESET CMDCWD command.
•
The CMDCWD command operates differently from the CMDVOL command.
PATHCOM uses values defined with the CMDVOL command to resolve file names
when it processes the SET command. But PATHCOM uses values defined with
the CMDCWD command to resolve relative pathnames when it processes ADD or
ALTER commands.
If a default absolute pathname /abc is defined with the CMDCWD command
(assuming no value has been set for the CWD attribute), all OSS relative
pathnames in ADD or ALTER commands are resolved with the /abc absolute
pathname. The resolved pathnames are sent to the PROCESS_SPAWN_
procedure. However, the default OSS directory name and other relative OSS
pathnames are stored separately in the PATHMON configuration file.
If you issue the CMDCWD command again to assign the pathname /xyz (and there
is still no value defined by the SET SERVER CWD command), all relative
pathnames sent thereafter to PROCESS_SPAWN_ procedure are now resolved
with the /xyz pathname.
CMDCWD oss-pathname