From owner-freebsd-questions Mon Feb 11 16:27:50 2002 Delivered-To: freebsd-questions@freebsd.org Received: from bingnet2.cc.binghamton.edu (bingnet2.cc.binghamton.edu [128.226.1.18]) by hub.freebsd.org (Postfix) with ESMTP id 3307337B402 for ; Mon, 11 Feb 2002 16:27:47 -0800 (PST) Received: from opal (cs.binghamton.edu [128.226.123.101]) by bingnet2.cc.binghamton.edu (8.11.6/8.11.6) with ESMTP id g1C0RiF09967; Mon, 11 Feb 2002 19:27:44 -0500 (EST) Date: Mon, 11 Feb 2002 19:27:43 -0500 (EST) From: Zhihui Zhang X-Sender: zzhang@opal To: Anonymous - Mike Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Running binary In-Reply-To: Message-ID: 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 If your binary is named as abc, try this command: $ where abc Then find out if the abc is in your search path. If you have a copy of abc somewhere else and you want to run the local copy of abc, use ./abc. -Zhihui On Mon, 11 Feb 2002, Anonymous - Mike wrote: > Hi, > > How do you run a binary from the directory it resides in? Do you have to > prepend a . or / or something? > > Mike > =========================================== > This is my real email for lists and USENET > For an eye-opener - http://www.copernic.com > Search on: full name + company name > > > 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