[Techtalk] Kill question

Hamster hamster at hamsternet.org
Thu Sep 18 21:19:25 EST 2003


Tabatha

> So if I can locate all the processes running by grepping my username, is
> there any way to kill this way too?  We have been reading everything
> over here to find the answer, but just aren't seeing it.  If not, are
> there any other ways that might make this easier on me?


You could write a little shell script to do the kill automatically.

Something like:

for process in `ps aux | grep tabatha | tr -s ' ' | cut -d' ' -f2`
do
	kill $process
done

Note - I just wrote that off the top of my head and havent tested it :-)
That should be the general idea though!

Hamster


More information about the Techtalk mailing list