From owner-freebsd-questions Thu Jan 4 14:48:37 2001 From owner-freebsd-questions@FreeBSD.ORG Thu Jan 4 14:48:35 2001 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.hcvlny.cv.net (mx1.hcvlny.cv.net [167.206.112.76]) by hub.freebsd.org (Postfix) with ESMTP id 9419537B400 for ; Thu, 4 Jan 2001 14:48:34 -0800 (PST) Received: from s1.optonline.net (s1.optonline.net [167.206.112.6]) by mx1.hcvlny.cv.net (8.10.2/8.10.2) with ESMTP id f04Mg0u00484 for ; Thu, 4 Jan 2001 17:42:00 -0500 (EST) Received: from optonline.net (ool-18be012f.dyn.optonline.net [24.190.1.47]) by s1.optonline.net (8.10.2/8.10.2) with ESMTP id f04Mfwi28429 for ; Thu, 4 Jan 2001 17:41:58 -0500 (EST) Sender: gsam@optonline.net Message-ID: <3A54FC36.91943EE1@optonline.net> Date: Thu, 04 Jan 2001 17:41:58 -0500 From: trini0 X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.2-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: FreeBSD Questions Subject: Re: Killing process References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks, guys. John Baldwin wrote: > On 04-Jan-01 trini0 wrote: > > I cant find out where, but Im trying to kill a process by kill -9 > > /var/run/*.pid, it keeps saying illegal process. I checked the archives > > but found nothing. What is the correct syntax to define a process by > > /var/run/*.pid. > > Thanks > > kill `cat /var/run/foo.pid` > > kill takes the pid as its argument. /var/run/foo.pid is a file that contains > the pid of the process. > > -- > > John Baldwin -- http://www.FreeBSD.org/~jhb/ > PGP Key: http://www.baldwin.cx/~john/pgpkey.asc > "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message