From owner-freebsd-questions Tue Sep 9 18:29:43 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA23000 for questions-outgoing; Tue, 9 Sep 1997 18:29:43 -0700 (PDT) Received: from ns.mexcom.net (mail.mexcom.net [206.103.64.9] (may be forged)) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA22974 for ; Tue, 9 Sep 1997 18:29:34 -0700 (PDT) Received: from sunix (eculp@sunix.mexcom.net [206.103.64.3]) by ns.mexcom.net (8.8.7/8.8.7) with SMTP id UAA00792; Tue, 9 Sep 1997 20:27:30 -0500 (CDT) Message-ID: <3415F7F1.45613BCC@mexcom.net> Date: Tue, 09 Sep 1997 20:29:21 -0500 From: Edwin Culp Organization: Mexico Communicates, S.C. X-Mailer: Mozilla 3.01Gold (X11; I; Linux 2.0.14 i586) MIME-Version: 1.0 To: Lee Johnston CC: freebsd-questions@FreeBSD.ORG Subject: Re: Using kill References: <3415A36A.167EB0E7@cyberworld.demon.co.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Lee Johnston wrote: > > Hi > > When I try to kill a process using kill -TERM 'cat /var/run/named.pid' > or similar it won't let. I keep getting the error message: > > No such pid cat /var/run/named.pid > > Is there a way to kill a process with out opening the pid file??? is would work better kill -TERM `cat /var/run/named.pid` These are the apostrophes for execution. '' are for quoting. You can also do a ps and use the PID (process id) kill -TERM 356 Hope that helps. Start a non critical process and practice:-) Ed > > Thanks > > ------------ > Lee Johnston > ljohnston@cyberworld.demon.co.uk > http://www.cyberworld.demon.co.uk > ---------------------------------