PreviousNext

Current Cell Name (_c)

The _c convenience variable holds the name of the cell in which the principal is registered. The dcecp program sets this variable from the login context inherited from the parent process. You can change its value by performing another login operation. Setting it using set generates an error.

dcecp> puts $_c
/.../my_cell.goodco.com
dcecp>

This variable is generally useful in environments where administrators deal with multiple cells. For example, you could use the _c variable as a building block in constructing the current context's fully-qualified principal name for use in scripts. Join the cell name and user name variables together with a slash character (/) as shown in the following example.

dcecp> puts $_c/$_u
/.../my_cell.goodco.com/cell_admin
dcecp>