Obtain the process ID of the process you want to control.
# pgrep process |
process is the name of the process you want to control.
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 23–3 lists these commands. |
pid |
Identifies the process ID. |
Verify the process status.
# pgrep PID |
The following example shows how to use process tools to stop and restart dtpad.
# PATH=$PATH:/usr/proc/bin # export PATH 1 # pgrep dtpad 2 2921 # pstop 2921 3 # prun 2921 4 |
Adds the /usr/proc/bin directory to the PATH variable
Obtains the process identification number for dtpad
Stops the dtpad process
Restarts the dtpad process