[Techtalk] Kill question

Gina Lanik geekgrrl at geekgrrl.priv.at
Wed Sep 24 12:35:53 EST 2003


Better late than never, still catching up on my mails...

On Thu, Sep 18, 2003 at 01:11:45PM -0700, Tabatha Marshall wrote:
> Well thank you EVERYBODY for the overwhelmingly helpful responses!
> 
> We did a little something based on what Tricia wrote, created a
> "killevo" command and put in my bin directory:
> 
> #!/bin/bash
> 
> function kill_name {
>    ps -aef | grep "$1" | grep "$USER" | awk '{print $"2"}' | xargs kill;
> }
> 
> kill_name evolution
> kill_name gconfd
> kill_name bonobo
            ^^^^^^
Since you know the names of the programms you want to kill you might also
want to look into 'killall'.

Cheers,

Gina
-- 
Gina Lanik                      :: LinuxChix member
SysAdmin                        :: http://www.linuxchix.org/
http://www.geekgrrl.priv.at/    :: LUGA member
http://nilasae.livejournal.com/ :: http://www.luga.at/


More information about the Techtalk mailing list