(Optional) Use output from the ps command to obtain the identification number of the process you want to display more information about.
# ps -e | grep process |
process |
Name of the process you want to display more information about. |
The process identification number is in the first column of the output.
Use the appropriate /usr/bin/proc command to display the information you need.
# /usr/proc/bin/pcommand pid |
pcommand |
Process tool command you want to run. Table 63-2 lists these commands. |
pid |
Identification number of a process. |
The following example shows how to use process tool commands to display more information about an lpsched process. First the /usr/proc/bin path is defined to avoid typing long process tool commands. Next, the identification number for lpsched is obtained. Finally, output from three process tool commands is shown.
The following example shows output from the pwait command, which waits until a process terminates, then displays information about what happened. The following example shows output from the pwait command after a Command Tool window was exited.
$ ps -e | grep cmdtool 273 console 0:01 cmdtool 277 console 0:01 cmdtool 281 console 0:01 cmdtool $ pwait -v 281 281: terminated, wait status 0x0000 |