From owner-freebsd-questions Mon Jun 25 7:51: 2 2001 Delivered-To: freebsd-questions@freebsd.org Received: from firefly.lemis.com (firefly.lemis.com [192.109.197.244]) by hub.freebsd.org (Postfix) with ESMTP id 0A6BA37B406 for ; Mon, 25 Jun 2001 07:50:48 -0700 (PDT) (envelope-from grog@firefly.lemis.com) Received: (from grog@localhost) by sydney.worldwide.lemis.com (8.11.3/8.9.3) id f5O2F9F00938; Sun, 24 Jun 2001 12:15:09 +1000 (EST) (envelope-from grog) Date: Sun, 24 Jun 2001 12:15:08 +1000 From: Greg Lehey To: Alex Kwan Cc: freebsd-questions Subject: Re: A simple C programming question Message-ID: <20010624121508.F802@sydney.worldwide.lemis.com> References: <001901c0fbe2$fd4c7180$8a1e40ca@alexkwan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <001901c0fbe2$fd4c7180$8a1e40ca@alexkwan>; from alexkwan@pacific.net.hk on Sat, Jun 23, 2001 at 08:48:52PM +0800 Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF 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 On Saturday, 23 June 2001 at 20:48:52 +0800, Alex Kwan wrote: > Hi! > > I have wrote a simple C program, after compiled, > a a.out file was created, but can't execute. > How to make it executable? I think you'll find it's executable (x bit set in the permissions), just not in your PATH. That's the reason for the ./a.out that others have suggested. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message