Skip site navigation (1)Skip section navigation (2)
Date:      06 Jun 2002 21:57:24 -0500
From:      Larry Rosenman <ler@lerctr.org>
To:        Patrick Calkins <pcalkins@oemsupport.com>
Cc:        Stable "(stable@freebsd.org)" <stable@FreeBSD.ORG>
Subject:   Re: OT: Passing kill a pid-file
Message-ID:  <1023418644.351.12.camel@lerlaptop>
In-Reply-To:  <9B9CB6555E6BA049BC2B857E7711C24F3F4852@puke.reno.oemsupport.com>
References:   <9B9CB6555E6BA049BC2B857E7711C24F3F4852@puke.reno.oemsupport.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 2002-06-06 at 21:55, Patrick Calkins wrote:
> Slightly (ok, extremely) off topic - I know its simple, but I am going nuts
> finding it...
> how do I pass 'kill' a pid that lives in a file?? I am writing a .sh script
> to shutdown one of my daemons, and the pid is in a file...
> I keep thinking its something like kill -9 && cat '/bla/bla/my.pid'

kill -9 `cat /bla/bla/my.pid`

note that the quotes are back ticks.

LER
> 
> Patrick
> OEMSupport.Com, Inc 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-stable" in the body of the message
> 
-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 972-414-9812                 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1023418644.351.12.camel>