From owner-freebsd-questions Fri Feb 27 12:38:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA24671 for freebsd-questions-outgoing; Fri, 27 Feb 1998 12:38:38 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from prepaid.atlas.com (atlas-244.atlas.com [206.29.170.244]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA24618 for ; Fri, 27 Feb 1998 12:38:26 -0800 (PST) (envelope-from Brian_Beattie@Atlas.com) Received: from coyote.prepaid.atlas.com(really [10.16.7.71]) by prepaid.atlas.com via sendmail with smtp id for ; Fri, 27 Feb 1998 12:37:50 -0800 (PST) (Smail-3.2 1996-Jul-4 #1 built 1998-Jan-29) Date: Fri, 27 Feb 1998 12:37:46 -0800 (PST) From: Brian Beattie X-Sender: Brian_Beattie@coyote.prepaid.atlas.com To: "T. Peterson" cc: freebsd-questions@FreeBSD.ORG Subject: Re: lost In-Reply-To: <34F719CE.BAE517E1@quik13.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 27 Feb 1998, T. Peterson wrote: > > I'm trying to run an a.out file compiled by the g++ compiler. As in the > book on page 151, "I'm in the directory and can see the file", but when > I try to run it I get "a.out: not found". I'm using the > Bourne-shell. I've looked at the path statement and I'm working in a > sub-directory beneath my home directory. The sub-dir is not in the path > statement, but the home directory is. I was able to compile the file > find, obviously, but now how do I run the thing? > It sounds like the current working directory is not in your path, try "./a.out" to execute the file. Brian Beattie Atlas PrePaid Services Brian_Beattie@atlas.com 503.228.1400x4355 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message