Subject: Re: Should programs clean-up their /var/run/*.pid files?
To: Andrew Brown <codewarrior@daemon.org>
From: Brian Cully <bjc@panix.com>
List: current-users
Date: 06/06/1997 13:56:57
On Jun 6, Andrew Brown wrote:
>         if ( kill -0 `cat /var/run/xntpd.pid` 2>/dev/null ); ...
[snip]
> much cleaner...

Except that it fork()s to execute the stuff inside the
parenthesis. Try:

kill -0 `cat /var/run/xntpd.pid` && { ... }

-- 
Brian Cully						bjc@panix.com
    ``Now, I'm going to say one word, and you're going to tell me
      the first thing that pops into your head.  Ready?
		  `Fratricide.''' --http://www.wizard.net/~joelogon/platonic/