From owner-freebsd-questions Thu Jan 4 17:17:32 2001 From owner-freebsd-questions@FreeBSD.ORG Thu Jan 4 17:17:28 2001 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from amber.ccs.neu.edu (amber.ccs.neu.edu [129.10.116.51]) by hub.freebsd.org (Postfix) with ESMTP id E958D37B400 for ; Thu, 4 Jan 2001 17:17:27 -0800 (PST) Received: from bellatrix.ccs.neu.edu (prakash@bellatrix.ccs.neu.edu [129.10.116.157]) by amber.ccs.neu.edu (8.10.0.Beta10/8.10.0.Beta10) with ESMTP id f051HCX29952; Thu, 4 Jan 2001 20:17:12 -0500 (EST) Date: Thu, 4 Jan 2001 20:17:11 -0500 (EST) From: Viswanathan Prakash To: trini0 Cc: FreeBSD Questions Subject: Re: Killing process In-Reply-To: <3A551F2C.A3F21E10@optonline.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Use the back quotes. Command should be kill -9 `cat /var/run/inetd.pid` On Thu, 4 Jan 2001, trini0 wrote: > Its me again. When I tried kill -9 'cat /var/run/inetd.pid' (just an example), I > get > kill: Arguments should be jobs or process id's > Im thinking its the shell. Im running 4.2S, so I think its the tcsh shell Im > using. > What should I do. > Thanks > > trini0 wrote: > > > 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 > > -- > > _____________________________ > | trini0 | > | | > / ) | Systems Administrator | > / / | Network Engineer | > ( ( | email ==> | > (((\ \> |/ ) trini0@optonline.net | > (\\\\ \_/ /_________________________| > \ / > \ _/ > / / > / / > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -- Prakash To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message