Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Sep 1997 01:36:57 +0100
From:      Brian Somers <brian@awfulhak.org>
To:        Lee Johnston <ljohnston@cyberworld.demon.co.uk>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Using kill 
Message-ID:  <199709100036.BAA19743@awfulhak.demon.co.uk>
In-Reply-To: Your message of "Tue, 09 Sep 1997 20:28:42 BST." <3415A36A.167EB0E7@cyberworld.demon.co.uk> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 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???

Your quotes are the wrong way 'round.  Use

  kill `cat /var/run/named.pid`

> Thanks
> 
> ------------
> Lee Johnston			 
> ljohnston@cyberworld.demon.co.uk 
> http://www.cyberworld.demon.co.uk
> ---------------------------------

-- 
Brian <brian@awfulhak.org>, <brian@freebsd.org>
      <http://www.awfulhak.org>;
Don't _EVER_ lose your sense of humour....





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