It'll work on Mandrake too, and a variety of other platforms. But on at least Mandrake, pidof spamd won't work because the process name is not spamd. I think it's pretty easy to set argv[0] though in perl, isn't it? I'll reread the docs and see if we can't just fix that so the process name is spamd.
C Jason Kohles wrote: > Date: 27 Feb 2002 12:03:13 -0500 > From: Jason Kohles <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Re: Re: [SAtalk] BSD rc.d script and HTML spam > > On Wed, 2002-02-27 at 11:43, dman wrote: > > On Wed, Feb 27, 2002 at 04:43:37PM +0100, Arpi wrote: > > > > | > Sorry, that should be > > | > > > | > More generic: > > | > > > | > pid=`ps ax | grep "spamd" | grep -v grep | awk '{print $1}'` > > | > > | pid=`pidof spamd` ? > > > > 'pidof' is a Debian thing. > > > > [jason@traveller jason]$ cat /etc/redhat-release > Red Hat Linux release 7.2 (Enigma) > > [jason@traveller jason]$ pidof init > 1 > > > _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk