RE: Simple Script issue..??

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: Lisa Kachold
Date:  
To: plug-discuss
Subject: RE: Simple Script issue..??

Just use:

#pkill $processname

Reference: http://en.wikipedia.org/wiki/Pkill

www.Obnosis.com | http://en.wiktionary.org/wiki/Citations:obnosis | (503)754-4452
Catch the January PLUG HackFest! Kristy Westphal, CSO for the AZ Department of Economic
Security will provide a one hour
presentation on forensics 1/10/09 Noon at UAT.edu.


> Date: Wed, 10 Dec 2008 18:42:54 -0700
> From:
> To:
> Subject: Simple Script issue..??
>
> 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


_________________________________________________________________
Send e-mail faster without improving your typing skills.
http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss