System Administration Guide, Volume 2

Example--Controlling Processes

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
#
  1. Adds the /usr/proc/bin directory to the PATH variable.

  2. Obtains the process identification number for Print Tool.

  3. Stops the Print Tool process.

  4. Restarts the Print Tool process.