From owner-freebsd-questions Sun May 21 12:14:10 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mailgate.lci.com (gate1.lci.net [150.159.224.8]) by hub.freebsd.org (Postfix) with ESMTP id D723E37B95A for ; Sun, 21 May 2000 12:14:03 -0700 (PDT) (envelope-from Ahmed.Aden@qwest.com) Received: from dubntvw001.lci.com (exchange2.lci.com [150.159.199.35]) by mailgate.lci.com (8.9.3/8.9.3/Rbl-Orbs-Dul) with SMTP id OAA18483; Sun, 21 May 2000 14:28:38 -0400 Received: from 150.159.198.55 by dubntvw001.lci.com (InterScan E-Mail VirusWall NT); Sun, 21 May 2000 15:13:58 -0400 (Eastern Daylight Time) Received: by DUNTX003 with Internet Mail Service (5.5.2448.0) id ; Sun, 21 May 2000 15:01:02 -0400 Message-ID: <9B6418465506D21192CE00104BC6B62F083BFF33@MCNTX001> From: "Aden, Ahmed M" To: "'Alex Kwan'" Cc: "'freebsd-questions@freebsd.org'" Subject: RE: A basic question about C programming Date: Sun, 21 May 2000 14:55:48 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="big5" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Perhaps the problem is that inform is not in your path. Do a 'echo $PATH' to see if the directory inform resides in is being checked before trying to run the program. If you know inform is not in your path, from the current directory do a ./inform and it will run as an executable which it assumes to be in the current directory. Hope this helps -----Original Message----- From: Alex Kwan [mailto:alexkwan@pacific.net.hk] Sent: Sunday, May 14, 2000 8:00 AM To: freebsd-questions@FreeBSD.ORG Subject: A basic question about C programming 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 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