From owner-freebsd-questions Mon May 15 15:51:17 2000 Delivered-To: freebsd-questions@freebsd.org Received: from pop.idx.com.au (pop.idx.com.au [203.14.30.10]) by hub.freebsd.org (Postfix) with ESMTP id 403E537B90C for ; Mon, 15 May 2000 15:51:07 -0700 (PDT) (envelope-from dannyh@idx.com.au) Received: from freebsd.freebsd.org (tntwc01-3-238.idx.com.au [203.166.3.238]) by pop.idx.com.au (8.9.3/8.9.3) with SMTP id IAA26310; Tue, 16 May 2000 08:50:25 +1000 From: Danny To: XF , Alex Kwan Subject: Re: A basic question about C programming Date: Wed, 17 May 2000 08:56:45 +1000 X-Mailer: KMail [version 1.0.21] Content-Type: text/plain References: <20000514131017.A801@dds.nl> MIME-Version: 1.0 Message-Id: <00051708571901.00360@freebsd.freebsd.org> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thats easy make sure you have chmod 755 cprogram and use ./cprogram On Sun, 14 May 2000, XF wrote: > On Sun, May 14, 2000 at 08:00:23PM +0800, Alex Kwan wrote: > > Hi! > > > > I am learning C programming with FreeBSD, I write a simple C program > > (filename: inform.c) as follow: > > #include > > main() > > { > > printf("A .c is used to end a C program filename.\n"); > > } > > > > I compile it with "cc -o inform inform.c", when the compilation is > > finished, > > I have got the file "inform", but it can't execute and got the error > > "inform: Command not found", What is the problem of me? > > > > Thanks > > > > > > try ./inform > > -- > Error: Keyboard not attached. Press F1 to continue. > > > 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