CHDIR

process of the CI (for example, HPEDIT), only that process' CWD is c hanged. In this case, the paren t process' (for example, CI's) CWD is not a￿ected.

The CHDIR and CHGROUP commands change their process' CWD; ho wever, CHDIR does not post an y accounting information, and CHGROUP a￿ects the CWD of every process in the job/session structure. Connect and CPU time are still accounted to the user's logon accoun t and logon group.

A new, read-only, prede￿ned CI variable, HPCWD , contains the name of the current working directory in HFS syn tax. At logon, HPCWD contains /account name/logon group name. The HPCWD string value cannot exceed 255 characters. If the CWD is too long, or has been remo ved (for example, with the .2 shell rmdir command), then HPCWD will not be accessible.

The CHGROUP command causes the HPCWD variable to be set to /account/group changed to.

The table below summarizes the di￿erences and similarities bet ween the CHDIR and CHGROUP commands.

A￿ects

CHGROUP CHDIR

 

 

 

Accumulation of CPU and Connect time

yes

no

Set of accessible ￿les

yes

no

CWD of process

yes

yes

HPCWD variable

yes

yes

Disk space accumulation

yes

yes

 

 

 

Use

You can issue the CHDIR command from a job, a session, a program, or in break mode. Pressing 4Break5 has no e￿ect on this command. Y ou must have traverse directory entries (TD) permission to eac h directory component in dir name (refer to the ALTSEC command in this chapter for more information on directory permissions.) If the CHDIR command fails, the CWD does not change..

MPE/iX Commands 2-43