Date: Fri, 1 Mar 2002 02:49:02 -0600 (CST) From: Ryan Thompson <ryan@sasknow.com> To: "Paul C. Boyle" <paulcb_mcse@yahoo.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: killing a pid Message-ID: <20020301024411.B95430-100000@catalyst.sasknow.net> In-Reply-To: <200203010823.DAA01398@alpha.vaxxine.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <ryan@sasknow.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020301024411.B95430-100000>