Simple Script issue..??

kitepilot at kitepilot.com kitepilot at kitepilot.com
Wed Dec 10 18:46:06 MST 2008


kill `ps aux|grep -v grep|grep kicker|cut -b10-15`
WHAM!
Gone...   :)
Enrique 

 

wayne writes: 

> ps -A | grep $1 | cut -c1-5 | grep -o [0123456789]* | kill 
> 
> 
> WILL NOT WORK. 
> 
> I want to run the above script "whack" like this:   whack  kicker
> which should kill the process "kicker"
>   But it chokes at the "kill" part and I do not know what I'm 
> doing.....  and doing wrong  :-) 
> 
> Anybody?
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss


More information about the PLUG-discuss mailing list