Re: speaking of SysV scripts - kill

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Craig White
Date:  
To: plug-discuss
Subject: Re: speaking of SysV scripts - kill
On Tue, 2005-01-25 at 10:14 -0700, Kevin wrote:
> On Tue, 2005-01-25 at 10:07 -0700, Craig White wrote:
> > On Mon, 2005-01-24 at 20:13 -0700, Craig White wrote:
> > if I want to kill a running process, I need to find it and kill it.
> >
> > /bin/ps aux|grep relaydelay|cut -c9-14|/usr/bin/xargs -n 1 /bin/kill -15
> >
> > seems to work for locating a process in ps and sending it a kill -15
> >
> > Is there a better way?
>
> How about `pkill -15 relaydelay`?
>

----
::::blush::::

that was too simple !

gosh am I dumb...I couldn't get it die with kill arguments
because /usr/bin/perl is the app - pkill (file in memory banks).

Thanks - there goes the first command I did using both cut & xargs
either individually or separately by myself - without plug support.

Craig

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss