Obtain the process ID of the process that you want to control.
# pgrep process |
where process is the name of the process you want to control.
The process ID displayed in the first column of the output.
Use the appropriate process command to control the process.
# /usr/bin/pcommand pid |
Is the process (/proc) command that you want to run. Table 12–3 lists and describes these commands.
Identifies the process ID.
Verify the process status.
# ps -ef | grep pid |
The following example shows how to use process command to stop and restart the dtpad process.
# pgrep dtpad 1 2921 # pstop 29212 # prun 2921 3 |
Obtains the process ID for the dtpad process
Stops the dtpad process
Restarts the dtpad process