From owner-freebsd-questions Fri Mar 1 0:48: 5 2002 Delivered-To: freebsd-questions@freebsd.org Received: from catalyst.sasknow.net (catalyst.sasknow.net [207.195.92.130]) by hub.freebsd.org (Postfix) with ESMTP id E856C37B41A for ; Fri, 1 Mar 2002 00:48:01 -0800 (PST) Received: from localhost (ryan@localhost) by catalyst.sasknow.net (8.11.6/8.11.6) with ESMTP id g218n2p99504; Fri, 1 Mar 2002 02:49:02 -0600 (CST) (envelope-from ryan@sasknow.com) X-Authentication-Warning: catalyst.sasknow.net: ryan owned process doing -bs Date: Fri, 1 Mar 2002 02:49:02 -0600 (CST) From: Ryan Thompson To: "Paul C. Boyle" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: killing a pid In-Reply-To: <200203010823.DAA01398@alpha.vaxxine.com> Message-ID: <20020301024411.B95430-100000@catalyst.sasknow.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Paul C. Boyle wrote to freebsd-questions@FreeBSD.ORG: > I am trying to do this > > kill 'cat pid.sah' > > but its not working. > > Any ideas why? Yeah, two ideas. ` and ` :-) This is a very common newbie mistake... You need to use backticks (`) instead of single quotes ('). Backticks tell the shell to execute the command inside, which is what you want in this case, to turn the contents (via the "cat" command) of the file pid.sah into a command line argument. Actually, for most of us, it makes perfect sense. :-) So, kill `cat pid.sah`, not kill 'cat pid.sah' - Ryan -- Ryan Thompson Network Administrator, Accounts SaskNow Technologies - http://www.sasknow.com #106-380 3120 8th St E - Saskatoon, SK - S7H 0W2 Tel: 306-664-3600 Fax: 306-664-1161 Saskatoon Toll-Free: 877-727-5669 (877-SASKNOW) North America To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message