Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jun 2001 12:15:08 +1000
From:      Greg Lehey <grog@FreeBSD.org>
To:        Alex Kwan <alexkwan@pacific.net.hk>
Cc:        freebsd-questions <freebsd-questions@FreeBSD.org>
Subject:   Re: A simple C programming question
Message-ID:  <20010624121508.F802@sydney.worldwide.lemis.com>
In-Reply-To: <001901c0fbe2$fd4c7180$8a1e40ca@alexkwan>; from alexkwan@pacific.net.hk on Sat, Jun 23, 2001 at 08:48:52PM %2B0800
References:  <001901c0fbe2$fd4c7180$8a1e40ca@alexkwan>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010624121508.F802>