From owner-freebsd-questions Tue Nov 4 23:31:13 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA20086 for questions-outgoing; Tue, 4 Nov 1997 23:31:13 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from dreamworld.demon.co.uk (dreamworld.demon.co.uk [194.222.129.235]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id XAA20073 for ; Tue, 4 Nov 1997 23:31:09 -0800 (PST) (envelope-from eddyd@dreamworld.demon.co.uk) Received: from localhost (eddyd@localhost) by dreamworld.demon.co.uk (8.8.5/8.8.5) with SMTP id IAA00373 for ; Wed, 5 Nov 1997 08:31:21 GMT Date: Wed, 5 Nov 1997 08:31:20 +0000 (GMT) From: Eddy Deegan To: Free BSD Questions mailing list Subject: Re: question In-Reply-To: <199711050438.NAA27590@mx2.nisiq.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 5 Nov 1997, yama-ko wrote: > I can compile programs with C , but I cannot execute them . Why ? > > > %gcc sample.c > %ls > a.out sample.c > %a.out > a.out : cannot found command > % > You can, but your path probably doesn't look in the current directory for them. Type: % ./a.out instead of just plain vanilla 'a.out' and it will probably work. Eddy Deegan.