From owner-freebsd-questions Sat Jun 23 8:18:35 2001 Delivered-To: freebsd-questions@freebsd.org Received: from c007.snv.cp.net (c007-h012.c007.snv.cp.net [209.228.33.219]) by hub.freebsd.org (Postfix) with SMTP id EA8FF37B401 for ; Sat, 23 Jun 2001 08:18:32 -0700 (PDT) (envelope-from otterr@telocity.com) Received: (cpmta 6997 invoked from network); 23 Jun 2001 08:18:32 -0700 Received: from dsl-216-227-91-85.telocity.com (HELO zoso) (216.227.91.85) by smtp.telocity.com (209.228.33.219) with SMTP; 23 Jun 2001 08:18:32 -0700 X-Sent: 23 Jun 2001 15:18:32 GMT Reply-To: From: "Otter" To: "Arjan Knepper" , "Alex Kwan" Cc: "freebsd-questions" Subject: RE: A simple C programming question Date: Sat, 23 Jun 2001 11:16:43 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 In-Reply-To: <3B3495AE.8E11D1CC@jak.nl> Importance: Normal 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 chmod +x /path/to/a.out will make it executable. or man chmod if you need a specific permission level. Also, if you don't like the a.out notation, you can specify an output name with the -o flag. -Otter > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of > Arjan Knepper > Sent: Saturday, June 23, 2001 9:12 AM > To: Alex Kwan > Cc: freebsd-questions > Subject: Re: A simple C programming question > > > # ./a.out > > Should do the trick > > Arjan > > 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? > > Thanks! > > > > Alex > > > > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message