OSF DCE Administration Guide--Core Components

Using the DCE Control Program Command Language
name in _n (closer to the cell root).
One use of the _p variable is in traversing up a CDS hierarchy of directories. Another
use is showing the access control list (ACL) of a parent object. The following operations
view the ACLs of a server configuration object and of its parent object
(/.:/hosts/krypton/config/srvrconf):
dcecp> acl show /.:/hosts/krypton/config/srvrconf/video_clip
{appl_admin cdfrwx}
{unauthenticated r}
{any_other r}
dcecp> acl show $_p
{appl_admin criI}
{unauthenticated r}
{any_other r}
dcecp>
2.6.6 Last dcecp Object Name (_o)
The _o variable holds the name of the dcecp object used in the most recent operation.
The following example uses the _o variable to avoid retyping account:
dcecp> account show j_wanders
{acctvalid yes}
{client yes}
.
. [output omitted]
.
{home /}
.
. [output omitted]
.
{shell {}}
{stdtgtauth yes}
dcecp> $_o modify j_wanders -home /.:/fs/corporate_services/users/j_wanders
dcecp>
2.6.7 Last Operation’s Return Value (_r)
The _r variable holds the return value of the most recent operation. Many dcecp
commands return multiple lines of output which are in the form of a list.
The following example shows one use of the _r convenience variable. The dts show
command returns multiple lines as a list. The attrlist getvalues operation (see the
attrlist(8dce) reference page) searches through the returned list for the string
124243 Tandem Computers Incorporated 2 11