Re: Simple Script issue..??

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: James Finstrom
Date:  
To: Main PLUG discussion list
Subject: Re: Simple Script issue..??
pgrep my friend or killall -9

On 12/10/08, wayne <> wrote:
> 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 -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>


--
Sent from my mobile device

James Finstrom
Rhino Equipment Corp.
http://rhinoequipment.com ~ http://postug.com
Sometimes for it to "just work" you have to think outside the box!
Phone: 1-877-RHINO-T1 ~ FAX: +1 (480) 961-1826
IP:
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss