On Mon, 2005-01-24 at 20:13 -0700, Craig White wrote:
> I am playing around with a sendmail milter called relay-delay
> (greylisting) and I want to try to run this as much as possible out of a
> user shell (good luck I guess...it's still rather alpha).
>
> Problem #1 - it's a perl process...
> root 1689 0.0 1.2 51496 6412 pts/0 S 01:42
> 0:02 /usr/bin/perl -w /root/relaydelay-0.04/relaydelay.pl
>
> so first I want to kill it - (i.e. stop script)
>
> kill -15 1689 (seems gentle enough of a kill, drops connection to mysql
> db)
>
> so now I want to script it...
>
> /bin/ps aux|grep relaydelay|cut -c9-14|/usr/bin/xargs -n 1 /bin/kill -15
----
back to this cuz I really want to finish this up...
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?
Craig
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss