HP (Hewlett-Packard) HP 3000 Laptop User Manual


 
Chapter 3 135
Command Definitions C-E
CHDIR
Use
The CHDIR command may be invoked from a job, a session, a program, or in Break.
Pressing
Break has no effect on this command. You must have traverse directory entries
(TD) permission to each directory component in dir_name (refer to the ALTSEC command in
this chapter for more information on directory permissions.) The CWD is not changed if
the CHDIR command fails.
Examples
The following example shows the command entry to change to the directory dir1 in the
MYGRP group in the MYACCT account.
CHDIR /MYACCT/MYGRP/dir1
The following example shows the command entry to change to the MPE group level
(AGROUP) in the MYACCT account.
CHDIR /MYACCT/AGROUP
The following example shows the command entry to change to a directory named My_dir.
In this example, My_dir is a relative pathname and it is subdirectory in the current
working directory (CWD).
CHDIR ./My_dir
The following example shows the command entry to change to a directory named john, in
the group JONES, in the account MYACCT, by specifying the full pathname.
CHDIR /MYACCT/JONES/john
In the following example, a change is made to a directory named final by specifying the
relative pathname. The variable HPCWD displays the current working directory after the
change is made.
CHDIR ./es/final
SHOWVAR HPCWD
HPCWD = /MYACCT/JONES/john/es/final
Affects CHGROUP CHDIR
Accumulation of CPU and Connect times yes no
Set of accessible files yes no
CWD of process yes yes
HPCWD variable yes yes
Disk space accumulation yes no