From owner-freebsd-questions Mon Nov 25 15:07:59 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA17819 for questions-outgoing; Mon, 25 Nov 1996 15:07:59 -0800 (PST) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id PAA17806 for ; Mon, 25 Nov 1996 15:07:45 -0800 (PST) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.3/8.6.12) with SMTP id PAA01522; Mon, 25 Nov 1996 15:08:41 -0800 (PST) Date: Mon, 25 Nov 1996 15:08:40 -0800 (PST) From: Doug White Reply-To: dwhite@resnet.uoregon.edu To: MENTJA11@SNYBUFAA.CS.SNYBUF.EDU cc: questions@FreeBSD.ORG Subject: Re: help: run a.out In-Reply-To: <01IC9PFA0VO69ATMKM@SNYBUFAA.CS.SNYBUF.EDU> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, 25 Nov 1996 MENTJA11@SNYBUFAA.CS.SNYBUF.EDU wrote: > When I compile a c++ program with g++ i get the appropriate a.out file. > Any documentation i've found says to simply type a.out to run like normal. > Problem: FreeBSD returns "a.out: not found" Your current directory isn't in your PATH. Type './a.out' to run things in the current directory. This isn't included as a security precaution. You can edit ~/.cshrc or whatever to add . to the path line if that really bugs you. If you do, put it at the end; this reduces the chances of you running something in your current directory that you weren't intending. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major