On Tue, 2002-02-26 at 20:51, Mike Loiterman wrote:

> But the problem I'm encountering is that the process is called
> /usr/bin/perl /usr/local/sbin/spamd.  The killall command is not
> accepting any of the derivatives of that line I give it.  For example,
> killall spamd, killall /usr/local/sbin/spamd, and killall /usr/bin/perl
> /usr/local/sbin/spamd all won't work...it says it can't find any
> matching processes.  I'v tried many different combinations with no luck.
> This shouldn't be that hard I don't know why I'm having such difficulty.


Yeah, killall would kill Perl, and all instances of it. Not what you want,
really. How about this?

kill -TERM `ps ax | grep spamd | egrep -v grep | awk '{print $1}'`

That ought to do it. I use that on my FreeBSD 4.1 box.

- Mark

        System Administrator Asarian-host.org

---
"If you were supposed to understand it,
we wouldn't call it code." - FedEx


_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to