Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!sun-barr!ccut!titcca!hoffman!akira!tana From: tana@ee.sophia.ac.jp (Yoshiyuki Tanaka) Newsgroups: comp.unix.questions Subject: Re: How do you handle while(1) fork(); ? Message-ID: Date: 23 Jul 90 09:27:49 GMT References: <841@massey.ac.nz> Sender: news@akira.ee.sophia.ac.jp Distribution: comp Organization: Electrical Electronic Engineering Dept., Sophia Univ., Tokyo, Japan Lines: 18 In-reply-to: ARaman@massey.ac.nz's message of 10 Jul 90 23:14:56 GMT I often use the following script to kill processes by its names. It's stupid (kills itself) and dangerous (kills any process which includes the argument as its name), but it works to kill zombies if run a couple of times. I advise not to use it as root. #!/bin/sh -f pid=`ps -e | egrep $1 | awk '{print $1}'` echo KILLING $pid kill -9 $pid >/dev/null 2>&1 ---------------------------------------------------------------------------- Yoshiyuki Tanaka Sophia University, Tokyo Japan. Dept of Electrical & Electronic Enginerring Deiters Laboratory. Email: tana@bob.ee.sophia.ac.jp ----------------------------------------------------------------------------