Subject: Re: kill in bash script
To: None <netbsd-help@netbsd.org>
From: Jan Muenther <jan@atstake.com>
List: netbsd-help
Date: 11/13/2002 16:30:49
>>Thats the way to manualy find the pid and then kill it ... but how do I pick 
>>out the pid in a script?

I like to use awk. I also like to take care of more than one instance of 
a process. So, I tend to use the following:

for i in `ps a | grep whateverprogram | awk '{print $1}'; do kill 
-WHATEVERSIGNAL $i; done

As the Perl people always state - TMTOWTDI.

Cheers, Jan