(Optional) Use output from the ps command to obtain the identification number of the process you want to display more information about.
# pgrep 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/proc/bin command to control the process.
# /usr/proc/bin/pcommand PID |
pcommand |
Process tool command you want to run. Table 35-3 lists these commands. |
PID |
Identification number of a process. |
Verify the process status using the ps command.
# pgrep PID |
The following example shows how to use process tools to stop and restart Print Tool.
# PATH=$PATH:/usr/proc/bin # export PATH 1 # ps -e | grep print* 2 264 console 0:03 printtool # pstop 264 3 # prun 264 4 # ps | grep 264 264 console 0:03 printtool # |
Adds the /usr/proc/bin directory to the PATH variable.
Obtains the process identification number for Print Tool.
Stops the Print Tool process.
Restarts the Print Tool process.