RSGIS Unix Pages



Killing Unwanted Processes

Many times on the Unix system, you may find that a process (program) has been left running in the background on a machine either by you or another user. If the process was initiated by you, you have the ability to remove it. Otherwise, you need to contact someone who has the power to remove any user's processes (System Administrator, Instructor, Bonnie Banner, etc.).

1) The command psg can tell you if certain commands are still running, who owns the process, and the ID number used to eliminate it.
    To use the psg command, you need to include a text string that would appear in the program.
    Example:
         major{bbanner}23: psg netscape
         UID            PID        PPID    C       STIME        TTY       TIME     COMD
         ttilton       13440      12511      5      19:43:38      pts/7         5:18      /usr/local/netscape
2) If I am user ttilton, I can eliminate the process by issuing the following command (using the PID number above).
    Example:
       major{ttilton}24: zap 13440
     13440 killed with SIGTERM
    This process is now removed.


RS/GIS TL/ Utilizing the Lab Introduction
Home

Author:Bonnie B. Banner  _   RS/GIS Teaching Lab Manager,  Department of Geography and Earth Resources
College of Natural Resources, Utah State University, Logan, Utah 84322-5240,  _  Lab Phone (435)797-1264, fax (435)797-4048
For Scheduling Information  _  bbanner@nr.usu.edu, voice (435)797-7117

$Id: contacts.shtml,v 1.1 2002/02/08 20:22:11 pfarrall Exp $