TACL Reference Manual

Built-In Functions and Variables
HP NonStop TACL Reference Manual429513-018
9-256
#LOOKUPPROCESS Built-In Function
\node-name
is the system where the process is running.
$process-name
is the name of the process.
cpu,pin
is the CPU,PIN of the entry.
entry-number [ \node-name ]
is an entry number in the DCT for the specified system. If you omit\node-
name, the current default is used.
Result
#LOOKUPPROCESS returns a space-separated list of the selected information about
the DCT entry. The information is listed in the order in which the request options
appear.
Considerations
If a process has no name, it is not listed in the DCT, so #LOOKUPPROCESS
returns no information. If you specified RESULT, TACL returns 2.
If you use the ENTRY option, use an entry number as the DCT specifier.
If specifier is an entry number, TACL searches the DCT, starting with that entry
number, until it finds an entry that is actually in use. For example, if the first entry
number in use is 127, the call
#LOOKUPPROCESS /ENTRY/ 1
returns
127
Given the same circumstances, the call
#LOOKUPPROCESS /PROCESSID, RESULT/ 1
returns
$Z001 1
showing the process name of the first process on the list and indicating that it has
a higher entry number than the one specified.