home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sources / wanted / 5364 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  1.2 KB

  1. Path: sparky!uunet!paladin.american.edu!darwin.sura.net!jvnc.net!yale.edu!ira.uka.de!uka!i41s18!prechelt
  2. From: prechelt@i41s18.ira.uka.de (Lutz Prechelt)
  3. Newsgroups: comp.sources.wanted
  4. Subject: kill-by-name that *works*
  5. Date: 14 Dec 1992 15:44:18 GMT
  6. Organization: University of Karlsruhe, FRG
  7. Lines: 19
  8. Distribution: world
  9. Message-ID: <1gia4iINN5t1@iraul1.ira.uka.de>
  10. NNTP-Posting-Host: i41s18.ira.uka.de
  11.  
  12. I am looking for a program or script for Unix (namely SUN-OS and 
  13. Ultrix, but should be portable, if possible), that
  14. kills processes by giving the name of the program they run instead
  15. of by giving their process number.
  16.  
  17. I have a shell script (written myself) that works most of the time, 
  18. but when the youngest processes do not have the highest PIDs of all
  19. existing processes (which is possible, if a system runs long
  20. enough and PIDs wrap around after about 30000 processes), 
  21. it gets into trouble.
  22.  
  23.   Lutz
  24.  
  25.  
  26. -- 
  27. Lutz Prechelt   (email: prechelt@ira.uka.de)            | Whenever you 
  28. Institut fuer Programmstrukturen und Datenorganisation  | complicate things,
  29. Universitaet Karlsruhe;  D-7500 Karlsruhe 1;  Germany   | they get
  30. (Voice: ++49/721/608-4317, FAX: ++49/721/694092)        | less simple.
  31.